Skip to main content

Bug Tracker

Side navigation

#3745 closed bug (fixed)

Opened December 23, 2008 10:37PM UTC

Closed January 04, 2009 09:59PM UTC

Last modified January 04, 2009 10:08PM UTC

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 :)

Attachments (0)
Change History (5)

Changed December 24, 2008 08:41PM UTC by kswedberg comment:1

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')

Changed December 25, 2008 08:51PM UTC by flesler comment:2

cc: → pixeline
owner: → john
version: → 1.2.6

Changed January 04, 2009 04:09PM UTC by john comment:3

summary: 1.3 beta 1: selector issue1.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!

Changed January 04, 2009 09:59PM UTC by john comment:4

resolution: → fixed
status: newclosed

Just landed a fix for this in Sizzle, will be merging into jQuery shortly.

Changed January 04, 2009 10:08PM UTC by john comment:5