diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-07-25 14:38:55 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-25 14:38:55 -0400 |
commit | de213be3728a339e1f2b98712a0869f8afb9da67 (patch) | |
tree | 45bba39c7b69578aa24f93a2743c43762bc7d444 /src/manipulation.js | |
parent | bc07ae8c1dbe9af4cceee3f118ae8071a3a8afb2 (diff) | |
download | jquery-de213be3728a339e1f2b98712a0869f8afb9da67.tar.gz jquery-de213be3728a339e1f2b98712a0869f8afb9da67.zip |
Revert "Fix #12127. IE9/10 checks fall off the box on clone. Close gh-873."
This reverts commit 569d064fc93459695cb6eb6fd09e5ba3fda62f03.
Causing test fails in Safari, IE6, and IE7.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index fa6083c09..212eaf6bb 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -455,7 +455,9 @@ function cloneFixAttributes( src, dest ) { // IE6-8 fails to persist the checked state of a cloned checkbox // or radio button. Worse, IE6-7 fail to give the cloned element // a checked appearance if the defaultChecked value isn't also set - dest.defaultChecked = dest.checked = src.checked; + if ( src.checked ) { + dest.defaultChecked = dest.checked = src.checked; + } // IE6-7 get confused and end up setting the value of a cloned // checkbox/radio button to an empty string instead of "on" |