Bug Tracker

Ticket #3814 (closed bug: fixed)

Opened 6 years ago

Last modified 3 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:

Description

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

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

Change History

comment:1 Changed 6 years ago by emelendez

it is the same bug as Ticket #3745

comment:2 Changed 6 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 6 years ago by dmethvin

comment:3 Changed 6 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.

Note: See TracTickets for help on using tickets.