[webcomponents] [Custom]: Need adopted callback (bugzilla: 24577) (#210)

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.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/210

Received on Monday, 6 July 2015 07:39:53 UTC