adoptNode method

Node adoptNode(
  1. Node node
)

Document.adoptNode() transfers a from another Document into the method's document. The adopted node and its subtree are removed from their original document (if any), and their Node.ownerDocument is changed to the current document. The node can then be inserted into the current document.

Implementation

external Node adoptNode(Node node);