mozilla

Revision 334633 of TreeWalker

  • Revision slug: DOM/treeWalker
  • Revision title: treeWalker
  • Revision id: 334633
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment
Tags: 

Revision Content

Revision Source

<p>{{ DomRef() }}</p>
<h3 id="Introduction" name="Introduction">Introduction</h3>
<p>The <code>TreeWalker</code> object represents the nodes of a document subtree and a position within them.</p>
<p>A TreeWalker can be created using the <code><a href="/en/DOM/document.createTreeWalker" title="en/DOM/document.createTreeWalker">createTreeWalker()</a></code> method of the <code><a href="/en/DOM/document" title="en/DOM/document">document</a></code> object.</p>
<h3 id="Properties" name="Properties">Properties</h3>
<dl>
  <dt>
    <a href="/en/DOM/treeWalker.root" title="en/DOM/treeWalker.root">root</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.whatToShow" title="en/DOM/treeWalker.whatToShow">whatToShow</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.filter" title="en/DOM/treeWalker.filter">filter</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.ExpandEntityReferences" title="en/DOM/treeWalker.ExpandEntityReferences">expandEntityReferences</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.currentNode" title="en/DOM/treeWalker.currentNode">currentNode</a></dt>
</dl>
<h3 id="Methods" name="Methods">Methods</h3>
<dl>
  <dt>
    <a href="/en/DOM/treeWalker.parentNode" title="en/DOM/treeWalker.parentNode">parentNode</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.firstChild" title="en/DOM/treeWalker.firstChild">firstChild</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.lastChild" title="en/DOM/treeWalker.lastChild">lastChild</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.previousSibling" title="en/DOM/treeWalker.previousSibling">previousSibling</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.nextSibling" title="en/DOM/treeWalker.nextSibling">nextSibling</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.previousNode" title="en/DOM/treeWalker.previousNode">previousNode</a></dt>
  <dt>
    <a href="/en/DOM/treeWalker.nextNode" title="en/DOM/treeWalker.nextNode">nextNode</a></dt>
</dl>
<h3 id="Specification" name="Specification">Specification</h3>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker">DOM Level 2 Traversal: TreeWalker</a></p>
Revert to this revision