pub fn clone_node(
doc: &mut BaseDocument,
node: NodeId,
deep: bool,
) -> Result<NodeId>Expand description
node.cloneNode(deep).
A shallow clone copies an element’s name and attributes, a text node’s content, or a comment’s contents. Anything else clones to an empty comment, which is upstream’s placeholder for a node kind it cannot reproduce.