I just posted this ticket (with test-case) into the bug tracker:
http://dev.jquery.com/ticket/4104
For this HTML:
<p>Select me.</p>
This happens:
$('p:not(.test)').length == 1;
$('p:not(div.test)').length == 1;
$('p').not('p.test').length == 1;
$('p:not(p.test)').length == 0; // Fail!
--
Már Örlygsson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---