Append a node as the last child of the given node.
(&self, &parent: &NodeId, child: NodeOrText<NodeId>)
| 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, |
no test coverage detected