]> source.dussan.org Git - jquery.git/commitdiff
Manipulation: Check state lost if the name is set for Android 4.0-4.3
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 5 Nov 2014 17:14:56 +0000 (18:14 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Thu, 6 Nov 2014 15:05:18 +0000 (16:05 +0100)
Refs gh-1820
Closes gh-1841

src/manipulation/support.js

index 92c92b5ff044ededdd7b5366e13fe2be277c9bc7..98b7528189dc16054346b250c851fd66f69c88f7 100644 (file)
@@ -7,10 +7,13 @@ define([
                div = fragment.appendChild( document.createElement( "div" ) ),
                input = document.createElement( "input" );
 
+       // Support: Android 4.0-4.3
+       // Check state lost if the name is set (#11217)
        // Support: Windows Web Apps (WWA)
        // `name` and `type` must use .setAttribute for WWA (#14901)
        input.setAttribute( "type", "radio" );
        input.setAttribute( "checked", "checked" );
+       input.setAttribute( "name", "t" );
 
        div.appendChild( input );