Side navigation
#9690 closed bug (cantfix)
Opened June 28, 2011 10:37PM UTC
Closed July 12, 2011 06:18PM UTC
nth-child + class does not work in Firefox 5
Reported by: | Cardgage | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | selector | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This selector is meant to select all the cells in the 8th column which have a class of "valueCell".
$("#dataTable tbody td:nth-child(8).valueCell")
Most browsers behave as expected, returning the cells that are in the 8th column and that have the specified class. In Firefox 5, however, it appears to be trying to select the 8th of those cells in the row which have the "valueCell" class. So if some of the cells do not have the class, they are not counted.
This works as expected in:
- Safari 5.0.3
- IE 9
- Opera 11.11
- Chrome 12.0.742.100.
It does not work as expected in:
- Firefox 5.
I did not test Firefox 4.
Here is a working demo of the problem on jsFiddle: http://jsfiddle.net/5dDTP/
I was able to duplicate this problem on the following versions of jQuery:
- 1.6.1
- 1.6
- 1.5.2
- 1.4.4
- 1.3.2
The ''expected'' behavior occurs in Firefox 5 when using jQuery version 1.2.6
Operating system: Windows 7
Attachments (0)
Change History (2)
Changed June 29, 2011 01:10PM UTC by comment:1
component: | unfiled → selector |
---|---|
priority: | undecided → high |
status: | new → open |
Changed July 12, 2011 06:18PM UTC by comment:2
resolution: | → cantfix |
---|---|
status: | open → closed |
Unfortunately this is something that we can't reasonably fix due to the way the browser works, we're optimistic that Firefox will fix this soon:
Confirmed