Node.ParentElement

Node.ParentElement property

Returns the DOM node’s parent Element, or null if the node either has no parent, or its parent isn’t a DOM Element.

public Element ParentElement { get; }

Property Value

An Element that is the parent element of the current node, or null if there isn’t one.

Remarks

Reference:

DOM Standard.

See Also