You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See bug 20567 comment 69. We should have a callback for adoption so you can deal with moving to a new document and prevent leaking an entire global. The callback should take the old and new document as arguments.
This is a distinct issue. Adoption is different from cloning. No rush though I think. There's still controvery around exactly what we should do for adoption and whether or not leaking globals is acceptable.
Title: [Custom]: Need adopted callback (bugzilla: 24577)
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24577
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24577#c0
Anne wrote on 2014-02-07 10:45:19 +0000.
See bug 20567 comment 69. We should have a callback for adoption so you can deal with moving to a new document and prevent leaking an entire global. The callback should take the old and new document as arguments.
See bug 24570 for the equivalent bug on cloning.
comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24577#c1
Anne wrote on 2014-02-10 10:54:39 +0000.
New document is not needed as argument since you can get the node's ownerDocument (its node document).
comment: 2
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24577#c2
Anne wrote on 2014-02-10 11:13:20 +0000.
If you cannot model this after http://dom.spec.whatwg.org/#concept-node-adopt-ext please tell me.
comment: 3
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24577#c3
Anne wrote on 2014-02-10 11:13:46 +0000.
Obviously that callback in the DOM will need to be made asynchronous. Will do that once there's a proper hook in IDL or some such.
The text was updated successfully, but these errors were encountered: