When you call document.createElement(…) on a particular document, does that newly created element only apply to that original document, or can it be inserted into other accessible windows/document trees?
When you call document.createElement(…) on a particular document, does that newly created element only
Share
It can only be inserted in that document, but you can use
adoptNodeorimportNodeto make it accessible in a different document.