aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorDaniel Chatfield <chatfielddaniel@googlemail.com>2012-07-25 09:32:33 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-25 09:32:33 -0400
commit569d064fc93459695cb6eb6fd09e5ba3fda62f03 (patch)
tree50958d840e6175f6897edb650eaf43d85f6ecd4b /src/support.js
parentfffd23285adfc31e994c0c83503eb283eab75bbd (diff)
downloadjquery-569d064fc93459695cb6eb6fd09e5ba3fda62f03.tar.gz
jquery-569d064fc93459695cb6eb6fd09e5ba3fda62f03.zip
Fix #12127. IE9/10 checks fall off the box on clone. Close gh-873.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/support.js b/src/support.js
index e4a8b7c83..5bedb4dcb 100644
--- a/src/support.js
+++ b/src/support.js
@@ -15,7 +15,7 @@ jQuery.support = (function() {
// Preliminary tests
div.setAttribute( "className", "t" );
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
+ div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox' checked='checked'/>";
all = div.getElementsByTagName("*");
a = div.getElementsByTagName("a")[ 0 ];
@@ -96,8 +96,8 @@ jQuery.support = (function() {
};
// Make sure checked status is properly cloned
- input.checked = true;
- support.noCloneChecked = input.cloneNode( true ).checked;
+ input.checked = false;
+ support.noCloneChecked = !input.cloneNode( true ).checked;
// Make sure that the options inside disabled selects aren't marked as disabled
// (WebKit marks them as disabled)