Ticket #7566 (closed bug: invalid)
nth-last-child does not return the same results as document.querySelectorAll
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
p:nth-last-child(2n) or p:nth-last-child(odd)
native chrome/firefox:173
jquery:162
p:nth-last-child(2n+1) or p:nth-last-child(even)
native chrome/firefox:151
jquery:162
Change History
comment:2 in reply to: ↑ description Changed 3 years ago by anonymous
- Status changed from pending to new
my bad, it was the other way around:
p:nth-last-child(2n) or p:nth-last-child(odd)
native chrome/firefox/safari:162
jquery:173
p:nth-last-child(2n+1) or p:nth-last-child(even)
native chrome/firefox/safari:162
jquery:151
so this is a bug in browsers right? not the other way round?
Replying to anonymous:
p:nth-last-child(2n) or p:nth-last-child(odd)
native chrome/firefox:173
jquery:162
p:nth-last-child(2n+1) or p:nth-last-child(even)
native chrome/firefox:151
jquery:162
comment:3 follow-up: ↓ 4 Changed 3 years ago by jitter
- Status changed from new to pending
Thanks for taking the time to contribute to the jQuery project! But still haven't submitted a test case to reproduce your bug, only something which I guess is your debug output.
Please submit a reduced test case which reproduces the issue you are experiencing (ideally on http://jsfiddle.net). So that we can investigate this issue further.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

This is not a useful bug report. Please follow the bug reporting guidelines and create a reduced test case. Thanks!