Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3793 closed bug (fixed)

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+-]*)\)?/;

Change History (1)

comment:1 Changed 11 years ago by john

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!

Note: See TracTickets for help on using tickets.