Re: [w3c/webcomponents] Is there a way to detect if a custom element was constructed during parsing? (#789)

Ah, thanks! I suppose we'd also need to patch `attachShadow` for the `"closed"` shadow roots, to store their hosts.

> I'd be interested to know what the exact use case is for detecting when a parser is creating a custom element. 

I was wondering if it would be helpful in any way for improving the [`MutationObserver`-based example of child connected/disconnected callbacks](https://github.com/w3c/webcomponents/issues/787#issuecomment-459829842).

-- 
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/789#issuecomment-459870053

Received on Friday, 1 February 2019 21:16:28 UTC