Skip to main content

import_node

Function import_node 

Source
pub fn import_node(
    doc: &mut BaseDocument,
    node: NodeId,
    deep: bool,
) -> Result<NodeId>
Expand description

document.importNode(node, deep).

Every script-visible node belongs to the one document, so importing is the same structural operation as cloning. It stays a distinct entry point because frameworks take this path specifically for template roots.