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