Re: [w3c/webcomponents] How can a custom element detect when it is transcluded into a shadow tree (slotchange)? (#504)

The solution to this problem is to have parent elements observe which children are attached to them or which children are attached to their slots when the parent is in a ShadowDOM tree. This is better than my current design where children observe parents in order to determine if child was attached to a correct parent, which doesn't work in closed Shadow trees because the child can't see the parent the slot where it is distributed into.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/504#issuecomment-228500005

Received on Saturday, 25 June 2016 01:37:02 UTC