0.1.5 • Published 6 years ago

dom-ext v0.1.5

Weekly downloads
14
License
MIT
Repository
github
Last release
6 years ago

dom-ext - DOM extensions

DOM functions, methods and objects that are not part of the DOM standard.

Installation

Can be used in any environment that provides DOM implementation.

NPM:

$ npm install dom-ext

Browser:

For browser, you can create custom toolset with help of modules-webmake

API

Document extensions

isDocument(x)

Whether object is an instance of DOM Document

validDocument(x)

If given object is not DOM Document throw TypeError in other case return it.

DocumentFragment extensions

isDocumentFragment(x)

Whether object is an instance of DocumentFragment

Node extensions

isNode(x)

Whether object represents any DOM node

Tests Build Status

$ npm test