Skip to main content

Bug Tracker

Side navigation

#11123 closed enhancement (invalid)

Opened January 01, 2012 06:59AM UTC

Closed January 12, 2012 03:18PM UTC

Last modified January 30, 2012 03:12PM UTC and all associated code should be removed from jQuery

Reported by: markel Owned by:
Priority: low Milestone:
Component: manipulation Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Related to --

I run jQuery code without this check in Chrome, for versions 5, 8, 10, 16 and also for Safari 5, 4, 3 (just in case), bug persist only in Chrome 5 and Safari 4, 3.

Accordingly browser compability page --, older versions of Safari and Chrome is no longer supported.

Interestingly enough, current check even for Chrome 5 and Safari 4, 3 return true, apparently, bug existed only for input with type radio and only if input has a name attribute.

This commit was doing correct check --

Somewhere along the way check was altered and imperceptibly became broken…

pull request --

Attachments (0)
Change History (5)

Changed January 01, 2012 05:40PM UTC by rwaldron comment:1

component: unfiledmanipulation
milestone: None1.8
priority: undecidedlow
status: newopen

Nice find - we should have this reviewed by the jQuery Mobile devs, as they deal with older (mobile) Safari versions on iOS

Changed January 02, 2012 03:19PM UTC by timmywil comment:2

How does our test return false in Chrome but true in other browsers if it is a faulty test? However, if cloned radio inputs retain the checked state on a fragment (not a document), I will believe it.

Changed January 11, 2012 11:45PM UTC by markel comment:3

I did not accounte mobile browsers in this ticket. jQuery mobile supports a lot of browsers that uses Safari 4.

IPhone upto version 4.1 ( jQuery mobile support for IPhone begins at 3.2 version ) uses Safari 4, Android 2.3 (which covers 50-60% of all Android devices ), use it too ( based on userAgent string ).

I imagine some other mobile devices which supported by jQuery mobile use old webkit too. Obviously it still to early to remove this code, I'm closing pull request and suggesting you close this ticket. So if it should not be removed, then it should be fixed --

Another thing -- jQuery mobile relies on jQuery, and it supports Safari 4. But jQuery does not? Yes, its a mobile Safari, but it still look weird.

Some additional info:

Why checkClone is always true will illustrate this code --

This is more fun --

Changed January 12, 2012 03:18PM UTC by timmywil comment:4

resolution: → invalid
status: openclosed

Closing per OP request. Thank you for looking into it further.

Changed January 30, 2012 03:12PM UTC by dmethvin comment:5