[Bug 24115] Introduce CSS.isValidSelector()

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24115

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
jQuery wants to know because it supports a superset of selector syntax.  So
when someone does $("body *:header") jQuery will call querySelectorAll and then
catch the exception and do its own processing.  But the cost of the exception
causes significant overhead here (well over half the time, in my testing).

> Is the problem that people trigger and catch an exception from query() 100,000
> times or 1,000,000 times and it becomes a performance problem?

Yes.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 17 December 2013 16:52:23 UTC