previous_sibling property

previous_sibling property

Returns the node immediately preceding the specified one in its parent’s Node.child_nodes list, or if the specified node is the first in that list.

Remarks

Reference:

DOM Standard.

Definition:

@property
def previous_sibling(self):
    ...

See Also