root

external val root: Node(source)

The TreeWalker.root read-only property returns the root Node that the TreeWalker traverses.

MDN Reference