How can I copy a node or subtree from one document to another?

copy DOCUMENT Node subtree
0
Posted

How can I copy a node or subtree from one document to another?

0

DOM Level 2 defines an importNode() method that performs this operation. It is up to the implementation to do this in a standard way that works across implementations or in a more efficient way that uses knowledge of that implementation’s data structures. If you’re working with a Level 1 DOM, you have to copy the content manually.

Related Questions