WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

TreeWalker

This object is available to unprivileged JavaScript. It implements the following interfaces:

Properties

Node currentNode

readonly boolean expandEntityReferences

readonly NodeFilter filter

readonly Node root

readonly int whatToShow


Methods

Node firstChild ( ) Node lastChild ( ) Node nextNode ( ) Node nextSibling ( ) Node parentNode ( ) Node previousNode ( ) Node previousSibling ( )

Node firstChild ( )


Node lastChild ( )


Node nextNode ( )


Node nextSibling ( )


Node parentNode ( )


Node previousNode ( )


Node previousSibling ( )

Reference documentation is generated from Mozilla's source.