All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.dom-utils.getDocumentElement.js Maven / Gradle / Ivy

There is a newer version: 2.11.8
Show newest version
import { isElement } from "./instanceOf.js";
export default function getDocumentElement(element) {
  // $FlowFixMe[incompatible-return]: assume body is always available
  return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
  element.document) || window.document).documentElement;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy