The TreeWalker.currentNode
property represents the A Node.
Readonly
filterThe TreeWalker.filter
read-only property returns the NodeFilter
associated with the TreeWalker.
Readonly
rootThe TreeWalker.root
read-only property returns the root Node that the TreeWalker traverses.
Readonly
whatThe TreeWalker.whatToShow
read-only property returns a bitmask that indicates the types of nodes to show.
The TreeWalker.firstChild()
method moves the current the found child.
The TreeWalker.lastChild()
method moves the current the found child.
The TreeWalker.nextNode()
method moves the current the found node.
The TreeWalker.nextSibling()
method moves the current is no such node, it returns null
and the current node is not changed.
The TreeWalker.parentNode()
method moves the current and returns the found node.
The TreeWalker.previousNode()
method moves the current returns the found node.
The TreeWalker.previousSibling()
method moves the current there is no such node, it returns null
and the current node is not changed.
The
TreeWalker
object represents the nodes of a document subtree and a position within them.MDN Reference