DOM extensions
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
_html-node/#
attr
document-fragment
document
element
html-anchor-element
html-document
html-element
html-form-element
html-image-element
html-li-element
html-opt-group-element
html-option-element
html-table-row-element
node
parent-node
test
text
.editorconfig
.gitignore
CHANGELOG.md
CHANGES
LICENSE
README.md
appveyor.yml
index.js
package.json

README.md

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