Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#10388 closed bug (worksforme)

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

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

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 (4)

comment:1 Changed 7 years 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 7 years ago by addyosmani

Component: unfiledtraversing
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

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 7 years 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 7 years ago by San4es

Thank you a lot for operative answer and bug fix.

Note: See TracTickets for help on using tickets.