Re: [whatwg/dom] Consider adding localNameFilter to MutationObserver (#398)

LeaVerou left a comment (whatwg/dom#398)

One tricky bit is that for `attributes` and `characterData` mutations you want to be filtering by the *target*, but for `childList` mutations, you want to be filtering the `addedNodes` and `removedNodes`. Most use cases are about tracking added or removed elements of a certain type, not elements added and removed within a parent of a certain type. However, there is no precedent for a MO option that works this way.

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

Message ID: <whatwg/dom/issues/398/3651988691@github.com>

Received on Sunday, 14 December 2025 20:14:06 UTC