[whatwg/dom] The adopted callback should be passed the old and new document (#292)

https://dom.spec.whatwg.org/#example-5ffcda00

> For each inclusiveDescendant in node’s shadow\-including inclusive descendants that is a custom element, enqueue a custom element callback reaction with inclusiveDescendant, callback name "adoptedCallback", and an empty argument list\.

This doesn't help you track which document(s) you've been in; consider the case where an adopted callback causes more follow-on adoption. The same could be said of the connected and disconnected callbacks.

Maybe it is OK to consult the document or parentNode properties, but then the same could be said of the attributeChangedCallback, which is provided the old and new attribute values.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/292

Received on Monday, 15 August 2016 07:50:49 UTC