diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-04-25 18:26:36 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-06-10 23:28:14 -0400 |
commit | d837f119c3729565103005d5d7fa89e1dd8110cb (patch) | |
tree | 03f41c64a16faab49698d7fa6c2519c79874d706 /src/manipulation | |
parent | ff9dcfb0c4238d405af92cbd4ac27e0a36c6ff0c (diff) | |
download | jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.tar.gz jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.zip |
Support: clean up comments and Support notation
Closes gh-1577
Diffstat (limited to 'src/manipulation')
-rw-r--r-- | src/manipulation/support.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/manipulation/support.js b/src/manipulation/support.js index fb1e85567..822a014f5 100644 --- a/src/manipulation/support.js +++ b/src/manipulation/support.js @@ -7,21 +7,22 @@ define([ div = fragment.appendChild( document.createElement( "div" ) ), input = document.createElement( "input" ); - // #11217 - WebKit loses check when the name is after the checked attribute + // Support: Safari<=5.1 + // Check state lost if the name is set (#11217) // Support: Windows Web Apps (WWA) - // `name` and `type` need .setAttribute for 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 ); - // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 - // old WebKit doesn't clone checked state correctly in fragments + // Support: Safari<=5.1, Android<4.2 + // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + // Support: IE<=11+ // Make sure textarea (and checkbox) defaultValue is properly cloned - // Support: IE9-IE11+ div.innerHTML = "<textarea>x</textarea>"; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; })(); |