On 10/22/12 7:59 AM, David Bruant wrote:
As a web developer, I've never used adoptNode
I will bet $100 that you have, and never even realized it, what with implicit adoption. Again, unless you're narrowly defining "use" as "call adoptNode" as opposed to "adopt a node".
Specifically, compare <http://dom.spec.whatwg.org/#dom-document-adoptnode> to step 7 of <http://dom.spec.whatwg.org/#concept-node-replace> or step 8 of <http://dom.spec.whatwg.org/#concept-node-pre-insert>.
So the tradeoff is that cross-document inserts are slower. Which is fine, since they are rare.
-Boris _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo