Name
TreeWalker.nextSibling( ) — return the next sibling that is not filtered out
Availability
DOM Level 2 Traversal
Synopsis
Node nextSibling( );
Returns
The next sibling of the current node that is not filtered out, or
null
if there is no such sibling.
Description
This method sets currentNode
to the next sibling
of the current node that is not filtered out and returns that
sibling. If there is no such sibling, it leaves
currentNode
unchanged and returns
null
.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.