Re: [whatwg/dom] Make it possible to observe connected-ness of a node (#533)

> @Jack-Works I think [this polyfill](https://github.com/ungap/custom-elements#readme) would solve your issue. Alternatively, [element-notifier](https://github.com/WebReflection/element-notifier#readme) seems to address this exact issue too.

[This section](https://github.com/WebReflection/element-notifier#about-shadowdom) in the README of your `element-notifier` library is the most important reason why, as I've argued in this thread, MutationObserver in its current state is not currently sufficient in terms of addressing this use case, as the tree may have multiple roots.

Your library works very similarly to my [ConnectionObserver](https://github.com/wessberg/connection-observer) library that I built to address this use case, and it works across shadow roots, but it does by patching `Element.prototype.attachShadow` which is something I really hope can be avoided in the future.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/533#issuecomment-848722746

Received on Wednesday, 26 May 2021 12:21:26 UTC