firstChild property
Node?
get
firstChild
inherited
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.
Note: This property returns any type of node that is the first child of this one. It may be a
Textor aCommentnode. If you want to get the firstElementthat is a child of another element, consider usingElement.firstElementChild.
Implementation
external Node? get firstChild;