Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3814 closed bug (fixed)

table tr:first > *:not(:first), doesn't work

Reported by: emelendez Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:


I'm testing “jQuery 1.3 Beta 2″

Ok,In an HTML table, I want to select (in a single query) the cells of the first row, except the first cell.

in jQuery 1.2.6 this worked nicely: $("table tr:first > *:not(:first)")

the use of "*" is because it could be either "th" or "td".

in jQuery 1.3b2 throws an error.

Attachments (1)

test-3814.html (636 bytes) - added by dmethvin 14 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by emelendez

it is the same bug as Ticket #3745

comment:2 Changed 14 years ago by dmethvin

need: ReviewPatch
Owner: set to john

Agreed, but the bug is still there in 1.3b2, at least for this case. The error happens on this line:

match[3] = match[3].match(chunker).length > 1 ?

That's the new Sizzle code mentioned in #3745.

Changed 14 years ago by dmethvin

Attachment: test-3814.html added

comment:3 Changed 14 years ago by john

Component: unfilledselector
Resolution: fixed
Status: newclosed
Version: 1.3

Landed a fix for this in Sizzle: http://github.com/jeresig/sizzle/commit/495f51cba1382e0782a7e6b35e5a6055e5ad4507

Will be merging into jQuery shortly.

Note: See TracTickets for help on using tickets.