Node.ParentElement property

The read-only parentElement property of Node interface 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.



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

See Also