Node.ChildNodes

Node.ChildNodes property

The read-only childNodes property of the Node interface returns a live NodeList of child nodes of the given element where the first child node is assigned index 0. Child nodes include elements, text and comments.

Note: The NodeList being live means that its content is changed each time new children are added or removed.

public NodeList ChildNodes { get; }

Property Value

A live NodeList containing the children of the node.

Note: Several calls to childNodes return the same NodeList.

Remarks

Reference:

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

See Also