DekGenius.com
Team LiB   Previous Section   Next Section
TreeWalker.previousSibling( ) return the previous sibling that is not filtered out

Availability

DOM Level 2 Traversal

Synopsis

Node previousSibling(  );

Returns

The previous 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 closest previous 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.

    Team LiB   Previous Section   Next Section