Skip to main content

Bug Tracker

Side navigation

#9131 closed bug (invalid)

Opened May 05, 2011 06:16PM UTC

Closed May 09, 2011 02:43PM UTC

the :eq selector (and others) doesnt return the same thing depending of filters

Reported by: anonymous Owned by: anonymous
Priority: low Milestone:
Component: selector Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

On a simple html table, these 2 selectors doesnt return the same column index!

  • $("#table tr td:eq(8)")
  • $("#table tr:first td:eq(8)")

the first one will return the 8th column

the second one will return the 9th column

Attachments (0)
Change History (3)

Changed May 06, 2011 06:43PM UTC by timmywil comment:1

component: unfiledselector
owner: → anonymous
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed May 09, 2011 02:35PM UTC by anonymous comment:2

status: pendingnew

well, i've found where my error was. Its because i was using grouping cell (colspan) and i wasnt exluding them in the query so i had weird results.

sorry for this one!

Changed May 09, 2011 02:43PM UTC by timmywil comment:3

resolution: → invalid
status: newclosed

Thanks for looking into it.