Re: [whatwg/dom] `MutationObserver` flag to observe mutations in (open) shadow trees to facilitate polyfills of HTML syntax (Issue #1287)

LeaVerou left a comment (whatwg/dom#1287)

> Also see [WICG/webcomponents#204](https://github.com/WICG/webcomponents/issues/204)

That helps a bit by making it possible, since you can use it to keep track of which elements have shadow roots, rather than traversing the whole tree, though a [CSS pseudo-class](https://github.com/w3c/csswg-drafts/issues/11007) would have better DX and fewer false negatives since it's not prone to timing effects. A `shadow` flag would still be useful for making simple things easy.

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

Message ID: <whatwg/dom/issues/1287/3377087611@github.com>

Received on Tuesday, 7 October 2025 14:12:40 UTC