Node.PreviousSibling property

The read-only previousSibling property of the Node interface returns the node immediately preceding the specified one in its parent’s childNodes list, or null if the specified node is the first in that list.

public Node PreviousSibling { get; }

Property Value

A Node representing the previous sibling of the current node, or null if there are none.



DOM Standard - defines a platform-neutral model for events, aborting activities, and node trees.DOM Standard (DOM) # dom-node-previoussibling.GitHub - repository hosts the DOM Standard.

See Also