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

Thanks guys! Are there any edge cases that `this.isConnected && this.parentNode` won't catch?

How would you recommend polyfilling `isConnected`? Is the best way to traverse upward until we find a document? What about with shadow roots? Support for `isConnected` is currently low.

In my MutationObserver-based childConnected/DisconnectedCallback example I used my own `isConnected`, but it is set in `connectedCallback`.

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

Received on Friday, 1 February 2019 19:39:05 UTC