Document.adoptNode

Moves node from another document, and returns it. Throws "NotSupportedError" DOMException if node is a document, or a "HierarchyRequestError" DOMException if node is a shadow root.

interface Document
adoptNode

Meta