Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 4 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.

Change History (3)

comment:1 Changed 7 years ago by emelendez

it is the same bug as Ticket #3745

comment:2 Changed 7 years ago by dmethvin

  • need changed from Review to Patch
  • 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.

comment:3 Changed 7 years ago by john

  • Component changed from unfilled to selector
  • Milestone changed from 1.3 to 1.3.1
  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 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.