Detach the given node from its parent.
(&self, &target: &NodeId)
| 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) { |