Ticket #10921 (closed bug: duplicate)
Opera 11 - reordering selectors (comma separated) returns different number of elements!
| Reported by: | nenadvicentic@… | Owned by: | nenadvicentic@… |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | selector | Version: | 1.7.1 |
| Keywords: | opera, qsa | Cc: | |
| Blocking: | Blocked by: |
Description
Shortly, in Opera 11.52 queries bellow return different results (select on the begging, vs select on the end). Works in Opera 12 alpha. Example page is not currently available online, I can send you static html file if needed.
var third = $('select, input:submit, input:checkbox, input:radio, input:file, button').length;
var forth = $('input:submit, input:checkbox, input:radio, input:file, button, select').length;
Change History
comment:1 Changed 18 months ago by sindresorhus
- Owner set to nenadvicentic@…
- Status changed from new to pending
comment:3 Changed 18 months ago by sindresorhus
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to selector
Thanks. Just remember it's important that the testcase is simplified. Posting your whole source to jsfiddle is not good enough, see my testcase for example on how to do it.
I've created a simplified testcase that shows the issue.
I can reproduce the issue in Opera 11.52 and Firefox 3.6, not in Firefox 8, Chrome 15, Safari 5, IE7-9.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.