Re: [whatwg/dom] Proposal: add `childFilter` option to `MutationObserverInit` (#905)

LeaVerou left a comment (whatwg/dom#905)

Please note that this is not a correct polyfill, since each observation includes different options, while this is assuming that a single `childFilter` sets a `childFilter` globally.
Speaking from recent experience, it's actually nontrivial to implement this in userland, since nodes in `addedNodes` and `removedNodes` that would have been filtered by `childFilter` may still need to be there due to *other* observations (e.g. an ancestor with `subtree: true` that is observing more liberally).

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

Message ID: <whatwg/dom/issues/905/3649066169@github.com>

Received on Saturday, 13 December 2025 07:12:19 UTC