Skip to main content

Bug Tracker

Side navigation

#3793 closed bug (fixed)

Opened January 06, 2009 05:05PM UTC

Closed January 10, 2009 10:15PM UTC

CHILD regex bug

Reported by: balazs.endresz Owned by: john
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:
Description

$('li:not(:last-child)') fails:

http://groups.google.com/group/jquery-dev/browse_thread/thread/30ea94cfd730ecdb

possible soluton:

Sizzle.selectors.match.CHILD should be:

/:(only|nth|last|first)-child(?:\\((even|odd|[\\dn+-]*)\\))?/;

instead of the current:

/:(only|nth|last|first)-child\\(?(even|odd|[\\dn+-]*)\\)?/;

Attachments (0)
Change History (1)

Changed January 10, 2009 10:15PM UTC by john comment:1

resolution: → fixed
status: newclosed

Fixed here:

http://github.com/jeresig/sizzle/commit/03f3935c1191b3bc23f138fb64ee65deb8c2797c

Will land in the next merge with jQuery. Thanks for the tip!