aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Chatfield <chatfielddaniel@googlemail.com>2012-07-25 22:23:24 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-25 22:23:24 -0400
commit155855b2a9bd95219871210ae7dcacd2a5f7e117 (patch)
treee9c76e55f1ccac5fea41ba34d748436f1fbc614a /src
parenta475f1aa4dd7ac96fcd80728ce2738386778f343 (diff)
downloadjquery-155855b2a9bd95219871210ae7dcacd2a5f7e117.tar.gz
jquery-155855b2a9bd95219871210ae7dcacd2a5f7e117.zip
Fix #12127, fer real. IE9/10 check state on clone. Close gh-875.
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 212eaf6bb..d1dcb3768 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -455,9 +455,8 @@ 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
- if ( src.checked ) {
- dest.defaultChecked = dest.checked = 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"