Bug Tracker

Modify

Ticket #10921 (closed bug: duplicate)

Opened 18 months ago

Last modified 18 months ago

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

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.

comment:2 Changed 18 months ago by nenadvicentic@…

  • Status changed from pending to new

Here is example:

 http://jsfiddle.net/SnNw6/

try it in Opera 11.52

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.

comment:4 Changed 18 months ago by sindresorhus

  • Keywords opera, qsa added
  • Status changed from open to closed
  • Resolution set to duplicate

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

comment:5 Changed 18 months ago by sindresorhus

Duplicate of #7614.

comment:6 Changed 18 months ago by sindresorhus

Duplicate of #8468

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.