//#region src/shared/isHTMLElement.ts
function isHTMLElement(node) {
if (typeof window === "undefined" || typeof node !== "object" || node === null) return false;
const ownerWindow = node.ownerDocument?.defaultView ?? window;
return node instanceof HTMLElement || node instanceof ownerWindow.HTMLElement;
}
//#endregion
export { isHTMLElement };
//# sourceMappingURL=isHTMLElement.js.map