NodeIterator

  • Revision slug: DOM/NodeIterator
  • Revision title: NodeIterator
  • Revision id: 134731
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added, 4 words removed

Revision Content

{{ DomRef() }}

{{ gecko_minversion_header("1.9.1") }}

Introduction

The NodeIterator object allows you to iterate over the members of a list of the nodes in a subtree of the DOM, in document order.

A NodeIterator can be created using the createNodeIterator() method of the document object.

Properties

root
whatToShow
filter
expandEntityReferences
referenceNode {{ Non-standard_inline() }}
pointerBeforeReferenceNode {{ Non-standard_inline() }}

Methods

detach
previousNode
nextNode

Specification

DOM Level 2 Traversal: NodeIterator

Revision Source

<p>{{ DomRef() }}</p>
<p>{{ gecko_minversion_header("1.9.1") }}</p>
<h3 name="Introduction">Introduction</h3>
<p>The <code>NodeIterator</code> object allows you to iterate over the members of a list of the nodes in a subtree of the DOM, in document order.</p>
<p>A <code>NodeIterator</code> can be created using the <a class="internal" href="/En/DOM/Document.createNodeIterator" title="En/DOM/Document.createNodeIterator"><code>createNodeIterator()</code></a> method of the <a href="/en/DOM/document" title="en/DOM/document">document</a> object.</p>
<h3 name="Properties">Properties</h3>
<dl><dt><a class="internal" href="/En/DOM/NodeIterator.root" title="en/DOM/nodeIterator.root">root</a> </dt><dt><a class="internal" href="/En/DOM/NodeIterator.whatToShow" title="en/DOM/nodeIterator.whatToShow">whatToShow</a> </dt><dt><a class="internal" href="/En/DOM/NodeIterator.filter" title="en/DOM/nodeIterator.filter">filter</a> </dt><dt><a class="internal" href="/En/DOM/NodeIterator.expandEntityReferences" title="en/DOM/nodeIterator.expandEntityReferences">expandEntityReferences</a><br>
</dt><dt><a class="internal" href="/En/DOM/NodeIterator.referenceNode" title="en/DOM/nodeIterator.referenceNode">referenceNode</a> {{ Non-standard_inline() }} </dt><dt><a class="internal" href="/En/DOM/NodeIterator.pointerBeforeReferenceNode" title="en/DOM/nodeIterator.pointerBeforeReferenceNode">pointerBeforeReferenceNode</a> {{ Non-standard_inline() }}</dt></dl>
<h3 name="Methods">Methods</h3>
<dl><dt><a class="internal" href="/En/DOM/NodeIterator.detach" title="en/DOM/nodeIterator.detach">detach</a><br>
</dt><dt><a class="internal" href="/En/DOM/NodeIterator.previousNode" title="en/DOM/nodeIterator.previousNode">previousNode</a> </dt><dt><a class="internal" href="/En/DOM/NodeIterator.nextNode" title="en/DOM/nodeIterator.nextNode">nextNode</a> </dt></dl>
<h3 name="Specification">Specification</h3>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Iterator-overview" title="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Iterator-overview">DOM Level 2 Traversal: NodeIterator</a></p>
Revert to this revision