Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Node importNode(NodeimportedNode,
boolean deep)
throws DOMException;importedNode
The node to be imported.
deep
If true, recursively copy all descendants of importedNode as well.
A copy of importedNode (and possibly all of its descendants) with its ownerDocument set to this document.
This method throws a DOMException with a code of NOT_SUPPORTED_ERR if importedNode is a Document or DocumentType node, because those types of nodes cannot be imported.