Skip to main content

Bug Tracker

Side navigation

#10921 closed bug (duplicate)

Opened November 29, 2011 02:52PM UTC

Closed December 01, 2011 09:00AM UTC

Last modified December 01, 2011 09:04AM UTC

Opera 11 - reordering selectors (comma separated) returns different number of elements!

Reported by: nenadvicentic@gmail.com Owned by: nenadvicentic@gmail.com
Priority: low Milestone: None
Component: selector Version: 1.7.1
Keywords: opera, qsa Cc:
Blocked by: Blocking:
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;
Attachments (0)
Change History (6)

Changed November 29, 2011 05:34PM UTC by sindresorhus comment:1

owner: → nenadvicentic@gmail.com
status: newpending

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.

Changed November 30, 2011 11:00AM UTC by nenadvicentic@gmail.com comment:2

status: pendingnew

Here is example:

http://jsfiddle.net/SnNw6/

try it in Opera 11.52

Changed November 30, 2011 02:55PM UTC by sindresorhus comment:3

component: unfiledselector
priority: undecidedlow
status: newopen

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.

Changed December 01, 2011 09:00AM UTC by sindresorhus comment:4

keywords: → opera, qsa
resolution: → duplicate
status: openclosed

This appears to be a bug with Opera's querySelectorAll.

Changed December 01, 2011 09:00AM UTC by sindresorhus comment:5

Duplicate of #7614.

Changed December 01, 2011 09:04AM UTC by sindresorhus comment:6

Duplicate of #8468