When you call document.createElement(...) on a particular document, does that newly created elem开发者_高级运维ent only apply to that original document, or can it be inserted into other accessible windows/document trees?
It can only be inserted in that document, but you can use adoptNode
or importNode
to make it accessible in a different document.
精彩评论