kv-cv/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
2026-04-19 11:08:18 +07:00

14 lines
351 B
JavaScript

import { isObject } from 'motion-utils';
/**
* Checks if an element is an HTML element in a way
* that works across iframes
*/
function isHTMLElement(element) {
return (isObject(element) &&
"offsetHeight" in element &&
!("ownerSVGElement" in element));
}
export { isHTMLElement };
//# sourceMappingURL=is-html-element.mjs.map