Skip to main content

Bug Tracker

Side navigation

#8757 closed bug (worksforme)

Opened April 03, 2011 08:22AM UTC

Closed April 16, 2011 09:29PM UTC

Last modified March 14, 2012 05:29PM UTC

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

Reported by: 512gb@mail.com Owned by: 512gb@mail.com
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

Attachments (0)
Change History (6)

Changed April 03, 2011 08:55AM UTC by 512gb@mail.ru comment:1

Updates:

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

Changed April 04, 2011 06:00PM UTC by boushley comment:2

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?

Changed April 04, 2011 06:03PM UTC by timmywil comment:3

owner: → 512gb@mail.com
status: newpending

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

Changed April 15, 2011 04:54AM UTC by timmywil comment:4

component: unfiledselector
priority: undecidedlow

Changed April 16, 2011 09:29PM UTC by addyosmani comment:5

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.

Changed June 03, 2011 10:20AM UTC by jan.ptacek@gmail.com comment:6

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