Re: [w3c/webcomponents] How to detect when an element is transcluded into a shadow tree? (#504)

@hayatoito 

> Regarding the support of slotchange events in Blink, I am now implementing it at https://codereview.chromium.org/1995203002

Awesome!

@treshugart 

> there's a slotchange event being implemented in v1 that is a non-bubbling event fired on slot elements when the slotting algorithm runs.

This sounds nice, but I think that this event will be easy for the owner of a shadow root to use, but what about elements that are being inserted into a slot? I think (please let me know if I'm wrong) that due to Shadow DOM encapsulation that some (potentially custom) element being distributed into a slot will have no idea what slot that is, and in my case, the custom elements that I'm making need to know where their slots are located and what the parent element of the slot is.  Is there a way for the `slotchange` event to be useful to my custom elements (not just to the shadow root owner)?

---
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-222762622

Received on Tuesday, 31 May 2016 17:37:50 UTC