#3745 closed bug (fixed)
1.3 beta 1: :not(:first) fails
Reported by: | pixeline | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | selector | Version: | 1.2.6 |
Keywords: | wildcard, selector | Cc: | pixeline |
Blocked by: | Blocking: |
Description
var allItems = $('div.ds-item', datascape); (...)
$('*', allItems).not('p, a,form').show();
triggers this error in firebug: Error: match[3] is undefined jquery-1.3b1.js Line 1812
testcase here: http://pixeline.be/experiments/jquerybeta/test1.html
it seems related to the use of the wildcard '*' but you're the experts :)
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Cc: | pixeline added |
---|---|
Owner: | set to john |
Version: | → 1.2.6 |
comment:3 Changed 13 years ago by
Summary: | 1.3 beta 1: selector issue → 1.3 beta 1: :not(:first) fails |
---|
This is a duplicate of #3757.
However, the bug that Karl posted is a different one, so I'm just going to morph this ticket to refer to Karl's test case!
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Just landed a fix for this in Sizzle, will be merging into jQuery shortly.
comment:5 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
I think it's related to the .not() method (also :not() selector).
Another test case here: http://13beta.learningjquery.com/13b1.html
This triggers the same error (in Error Console, but not in Firebug): $('li:not(:last-child)')
These return all LI elements, rather than the correct set: $('li').not(':odd') $('li').not(':odd:first')