- From: Zibi Braniecki <notifications@github.com>
- Date: Wed, 28 Feb 2018 16:41:41 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 1 March 2018 00:42:03 UTC
> 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