New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dom-node-iterator

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-node-iterator

A portable NodeIterator polyfill.

5.0.0
latest
Source
npm
Version published
Weekly downloads
468
10.38%
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

dom

FAQs

Package last updated on 01 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts