DOMDocument::adoptNode Changes the ownerDocument of a node, its children, as well as the attached attribute nodes if there are any &reftitle.description; DOMNodeDOMDocument::adoptNode DOMNodesource Specification &warn.undocumented.func;