importNode

fun <T : Node> importNode(node: T, subtree: Boolean = definedExternally): T(source)

The importNode() method of the Document interface creates a copy of a Node or DocumentFragment from another document, to be inserted into the current document later.

MDN Reference


fun <T : Node> importNode(node: T, options: ImportNodeOptions): T(source)