Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

frontmeans/dom-primitives

Repository files navigation

DOM Primitives

NPM Build Status Code Quality Coverage GitHub Project API Documentation

An assorted set of basic DOM-related. See the API documentation.

DOM Node Types

These function check whether the target DOM node is of corresponding type:

DOM Inspection

  • nodeDocument - Returns a document of the given DOM node.

  • nodeHost - Finds a host element of the given DOM node. I.e. an enclosing element.

    Crosses shadow DOM bounds.

  • nodeWindow - Returns an owner window of the given DOM node.

DOM Manipulation