(
&self,
element: &NodeId,
prev_element: &NodeId,
child: NodeOrText<NodeId>,
)
| 250 | } |
| 251 | |
| 252 | fn append_based_on_parent_node( |
| 253 | &self, |
| 254 | element: &NodeId, |
| 255 | prev_element: &NodeId, |
| 256 | child: NodeOrText<NodeId>, |
| 257 | ) { |
| 258 | if self.document.borrow()[*element].parent.is_some() { |
| 259 | self.append_before_sibling(element, child); |
| 260 | } else { |
| 261 | self.append(prev_element, child); |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /// Append a `DOCTYPE` element to the `Document` node. |
| 266 | fn append_doctype_to_document( |
nothing calls this directly
no test coverage detected