5.0.0 • Published 4 years ago

dom-node-iterator v5.0.0

Weekly downloads
1,109
License
MIT
Repository
github
Last release
4 years ago

NodeIterator

The dom-node-iterator package provides a spec-compliant implementation of NodeIterator for environments that lack an implementation or conform to an older specification.

In environments that implement an older specification or do not implement the specification at all, behavior in the presence of DOM mutation is undefined.

This package implements the es-shim API interface. It works in an ES5-supported environment with a DOM implementation and complies with the spec.

Installation

Using npm:

npm install dom-node-iterator

Usage

// Install support, polluting the global namespace.
require('dom-node-iterator/auto');
var iter = document.createNodeIterator(document.body);

// Get the best implementation, without polluting the global namespace.
var createNodeIterator = require('dom-node-iterator');
var iter = createNodeIterator.call(document, document.body);
5.0.0

4 years ago

4.0.0

4 years ago

3.5.3

8 years ago

3.5.2

8 years ago

3.0.1

8 years ago

3.1.4

8 years ago

3.2.1

8 years ago

3.3.1

8 years ago

3.4.2

8 years ago

3.5.1

8 years ago

3.6.0

8 years ago

3.5.0

8 years ago

3.4.1

8 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.3

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago