This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
New document is not needed as argument since you can get the node's ownerDocument (its node document).
If you cannot model this after http://dom.spec.whatwg.org/#concept-node-adopt-ext please tell me.
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.
Moved to https://github.com/w3c/webcomponents/issues/210