pending → new
The W3C standard selectors like
input[type=text] are returning correct results, the ones like
:text are not. The W3C says the selector should match against the value attribute on the element, not the current dynamic value property set by the program or typed by by a user.
The crazy thing with the standard is that they *do* take some dynamic state into account such as the
:checked selector. Since the browser's
querySelectorAll method obeys the standard, it's not like jQuery can easily change the rules there. To implement the jQuery ones like
:text, which existed before
As the docs on
:text and the other jQuery custom selectors spell out, they are non-standard and should be avoided because, well, you can tell they're not consistent with the standard selectors and they also cause the selector engine to take a slower path through the code.