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

@treshugart

> only check and warn in dev

True, good idea.

I just realized that I would also need to use a `MutationObserver` with the `attributes: true` option on all the children of the shadow host, because changes in attributes can lead to changes in selector matches for the shadow root `<content>` element.

Basically, it seems like implementing the equivalent of `slotchange` for v0 `<content>` elements is really expensive.

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

Received on Friday, 2 December 2016 00:11:53 UTC