Opened 15 years ago
Closed 15 years ago
#3762 closed bug (duplicate)
multiple selectors inside :not() while using $.filter() do not work in 1.3b1
Reported by: | garrett | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | selector | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The following worked in jQuery 1.2.x:
$('ul>li').filter('li:not(.test-2,.test-4)').css({fontWeight: 'bold'});
It does not in jQuery 1.3b1. Curiously, it seems to work fine when used like so:
$('li:not(.test-3,.test-4)').css({backgroundColor: 'red'});
Also, the following statement works in 1.3b1 (which is similar to the first, except testing for one value inside of the :not()):
$('ul>li').filter('li:not(.test-2)').css({fontWeight: 'bold'});
So it seems that it may be an issue with passing multiple selectors in :not(), but only when filtering.
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | jq1.3b1-filter-not.html added |
---|
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a duplicate of #3757, which has been resolved.
demonstration of the $.filter(':not(.test-1,.test-2)') bug