Bug Tracker


Ticket #3814 (closed bug: fixed)

Opened 5 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:


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.


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

Change History

comment:1 Changed 5 years ago by emelendez

it is the same bug as Ticket #3745

comment:2 Changed 5 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.

Changed 5 years ago by dmethvin

comment:3 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Version set to 1.3
  • Component changed from unfilled to selector
  • Milestone changed from 1.3 to 1.3.1

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

Will be merging into jQuery shortly.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.