Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8757 closed bug (worksforme)

$(“input:checked”).length not working in opera after go back in browser history

Reported by: [email protected] Owned by: [email protected]
Priority: low Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:


Hi guys here is some incorrect behavior in opera when using $(“input:checked”).length

The detailed description is here: http://stackoverflow.com/questions/5528155/inputchecked-length-not-working-in-opera-after-go-back-in-browser-history

Shortly, after going back in history Opera returns $(“input:checked”).length equal to 0 instead of correct value, at the same time $(“input:checked”).size() returning correct value.

Tested in jQuery 1.5.1 and 1.5.2 all the same.

Could you let me know what is the reason of that issue.


Change History (6)

comment:1 Changed 12 years ago by [email protected]

Updates: You should read $(“input:checked”).size() also returning incorrect value (the same value as .length).

comment:2 Changed 12 years ago by boushley

I've created a jsFiddle for this http://jsfiddle.net/boushley/NU2LK/ However I don't see the behavior you're talking about. It seems to work fine, even when using the back button. Can you give any more specifics?

comment:3 Changed 12 years ago by timmywil

Owner: set to [email protected]
Status: newpending

Please provide a test case on http://jsfiddle.net that reproduces your issue.

comment:4 Changed 12 years ago by timmywil

Component: unfiledselector
Priority: undecidedlow

comment:5 Changed 12 years ago by addyosmani

Resolution: worksforme
Status: pendingclosed

Testing the issue you've experienced using jQuery (edge) and following the steps of going back and forth through the Opera history, I haven't been able to reproduce the issue you've described either. http://jsfiddle.net/addyosmani/NU2LK/5/ As at least two members of the team have not been able to reproduce the behaviour we'll be closing this ticket for now. If this is still an issue or you have further useful comments that you would like us to review, feel free to comment on this ticket at a later date. Team members do check closed tickets with recent comments on them from time to time.

comment:6 Changed 12 years ago by [email protected]

Opera Version 11.11 Build 2109 Win32 Windows XP going to fiddle -> checking second box -> going to opera home -> going back -> clicking -> "the size of input:checked is 1, the length is 1"

screenshot follows: https://lh5.googleusercontent.com/-xgsf8L5-t1A/Tei00WwL0YI/AAAAAAAAWX0/gtyc5jksYDA/s800/opera-fiddle-checkbox-length-bug-after-back-button.jpg

seems to me as a opera bug though

Note: See TracTickets for help on using tickets.