Node.FirstChild

Node.FirstChild property

The read-only firstChild property of the Node interface returns the node’s first child in the tree, or null if the node has no children.

If the node is a Document, this property returns the first node in the list of its direct children.

public Node FirstChild { get; }

Property Value

A Node, or null if there are none.

Remarks

Reference:

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

See Also