Nodes from external documents must be cloned using
importNode (or adopted using
adoptNode) before they can be inserted into the current document. For more on the
ownerDocument issues see the W3C DOM FAQ.
Gecko did not enforce the use of
adoptNode until 1.9. Since 1.9 alphas, failing to adopt or import a node before using it in a different document results in the
NS_ERROR_DOM_WRONG_DOCUMENT_ERR) exception being thrown. implemented in 47903