2 ms·
This post seems to completely miss the point of selectors and how you can match classnames and use pseudo selectors. This isn't a bug in jQuery at all, but just
by pieter 15y ago
This post seems to completely miss the point of selectors and how you can match classnames and use pseudo selectors. This isn't a bug in jQuery at all, but just the way css selectors work.
Especially telling is this phrase:
Here are some examples of invalid selectors in jQuery because they contain invalid characters:
$( "#person.name" ).addClass( "highlight" ); // FAIL
This is of course a perfectly valid selector, selecting a node that has both the id person and the class name. Saying that the selector is invalid is simply wrong.