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

Method remove_from_parent

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

Detach the given node from its parent.

(&self, &target: &NodeId)

Source from the content-addressed store, hash-verified

313
314 /// Detach the given node from its parent.
315 fn remove_from_parent(&self, &target: &NodeId) {
316 self.document.borrow_mut().detach(target);
317 }
318
319 /// Remove all the children from node and append them to `new_parent`.
320 fn reparent_children(&self, node: &NodeId, new_parent: &NodeId) {

Callers

nothing calls this directly

Calls 1

detachMethod · 0.80

Tested by

no test coverage detected