importNode method
The Document object's importNode() method creates a copy of a
Node or DocumentFragment from another document, to be
inserted into the current document later.
The imported node is not yet included in the document tree. To include it,
you need to
call an insertion method such as Node.appendChild or
Node.insertBefore with a node that is
currently in the document tree.
Unlike document.adoptNode, the original node is not removed from its
original document. The imported node is a clone of the original.
Implementation
external Node importNode(
Node node, [
bool deep,
]);