importNode
Description
The importNode of Document for JS returns a copy of node. If deep is true, the copy also includes the node’s descendants.
If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
Syntax
clone = document.importNode(node [, deep = false])
Parameters
node
A node.
deep
Include the node’s descendants.