Ticket #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: | ||
| 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: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/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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.