Re: [webcomponents] Replace attached/detached callbacks with insertedIntoDocument/removedFromDocument (#362)

You should not pass document. When a node is in a document or one of that document's hosted shadow trees, it's node document is that document. This will also be true for a node that was just removed. 

Although I wonder how the timing works out if you `appendChild` a node from a different document. Did you work that through?

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

Received on Tuesday, 8 March 2016 09:56:36 UTC