Bug Tracker

Modify

Ticket #9131 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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

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

Description

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

Change History

comment:1 Changed 2 years ago by timmywil

  • Owner set to anonymous
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to selector

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

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

comment:2 Changed 2 years ago by anonymous

  • Status changed from pending to new

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!

comment:3 Changed 2 years ago by timmywil

  • Status changed from new to closed
  • Resolution set to invalid

Thanks for looking into it.

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.