#8757 closed bug (worksforme)
$(“input:checked”).length not working in opera after go back in browser history
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Alex
Change History (6)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
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
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
Please provide a test case on http://jsfiddle.net that reproduces your issue.
comment:4 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
comment:5 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | pending → closed |
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
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
Updates: You should read $(“input:checked”).size() also returning incorrect value (the same value as .length).