The TreeWalker.parentNode() method moves the current and returns the found node.
TreeWalker.parentNode()
MDN Reference