Interface TreeWalker

The nodes of a document subtree and a position within them.

MDN Reference

interface TreeWalker {
    currentNode: Node;
    filter: null | NodeFilter;
    root: Node;
    whatToShow: number;
    firstChild(): null | Node;
    lastChild(): null | Node;
    nextNode(): null | Node;
    nextSibling(): null | Node;
    parentNode(): null | Node;
    previousNode(): null | Node;
    previousSibling(): null | Node;
}

Properties

currentNode: Node
filter: null | NodeFilter
root: Node
whatToShow: number

Methods

  • Returns null | Node

  • Returns null | Node

  • Returns null | Node

  • Returns null | Node

  • Returns null | Node

  • Returns null | Node

  • Returns null | Node