Skip to main content

child_nodes

Function child_nodes 

Source
pub fn child_nodes(doc: &BaseDocument, node: NodeId) -> Result<Vec<NodeId>>
Expand description

node.childNodes, as a snapshot rather than a live list.

A live NodeList would have to hold the document, which the borrow discipline forbids. Every caller upstream materialises the list anyway.