Node.PreviousSibling

Node.PreviousSibling property

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.

Remarks

Reference:

DOM Standard.

See Also