MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / append

Method append

css-inline/src/html/parser.rs:244–250  ·  view source on GitHub ↗

Append a node as the last child of the given node.

(&self, &parent: &NodeId, child: NodeOrText<NodeId>)

Source from the content-addressed store, hash-verified

242
243 /// Append a node as the last child of the given node.
244 fn append(&self, &parent: &NodeId, child: NodeOrText<NodeId>) {
245 self.append_impl(
246 child,
247 |document| document[parent].last_child,
248 |document, new_node| document.append(parent, new_node),
249 );
250 }
251
252 fn append_based_on_parent_node(
253 &self,

Callers 2

Calls 1

append_implMethod · 0.80

Tested by

no test coverage detected