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

> Filtering based on element names sense to me but why not just elementFilter?

My main issue with `elementFilter` is that it solves a subclass of the problem and motivates future additions like `attributeFilter` or combinations for cases where elements and attributes of particular type are expected.

querySelector handle all of that and can be internally optimized by engines for common cases (like elementFilter, attributeFilter etc.) while keeping the "slow case" still faster than doing that in the JS code

-- 
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/398#issuecomment-369434479

Received on Thursday, 1 March 2018 00:42:03 UTC