Bug Tracker

Modify

Ticket #10388 (closed bug: worksforme)

Opened 20 months ago

Last modified 20 months ago

.is('[disabled]') return wrong values in Opera

Reported by: San4es Owned by:
Priority: low Milestone: None
Component: traversing Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

Example:

<ul>
  <li></li>                     
  <li disabled></li>            
  <li disabled='disabled'></li> 
  <li disabled=''></li>         
</ul>

Function .is('[disabled]') returns for each LI element in Opera:

false, false, true, false

but expected

false, true, true, true.

There is no such problem in other browsers.

Change History

comment:1 Changed 20 months ago by San4es

There is an working example:  http://jsfiddle.net/A6qfM/6/. Tests were performed in following Opera 11.51 with jQuery 1.6.2, 1.6.3, 1.6.4.

comment:2 Changed 20 months ago by addyosmani

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to traversing

Tested in both Opera.current/stable and Opera.next with jQuery edge (1.7RC): this results in the expected output of false, true, true, true. Reverting to jQuery 1.6.4 or below results in the incorrect output so this has definitely already been fixed. Please use jQuery 1.7RC1 for now as this fix should already be in there.  http://jsfiddle.net/A6qfM/7/

comment:3 Changed 20 months ago by addyosmani

Looking for the duplicate as there must have been one for this to have been patched. Will update once located.

comment:4 Changed 20 months ago by San4es

Thank you a lot for operative answer and bug fix.

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.