nextSibling

The TreeWalker.nextSibling() method moves the current is no such node, it returns null and the current node is not changed.

MDN Reference