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

@treshugart You mentioned,

> there's a slotchange event being implemented in v1 that is a non-bubbling event fired on slot elements when the slotting algorithm runs. More discussion in #288. Would this solve your issue? I noticed the web component API you're using is the one Blink had prior to v1. AFAIK there's no way to detect this in "v0" without using a Mutation Observer on your <content> elements.

Mind explaining how to observe this on `<content>` elements with MutationObserver? As far as I know, there is only the `childList` that gets close, but does that also give us distributedNodes that aren't actually children of the content element?

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

Received on Friday, 25 November 2016 18:02:35 UTC