Node adoptNode(Node node) { final clone = node.internalCloneWithOwnerDocument(this, true); clone._parent = null; return clone; }