From 155855b2a9bd95219871210ae7dcacd2a5f7e117 Mon Sep 17 00:00:00 2001 From: Daniel Chatfield Date: Wed, 25 Jul 2012 22:23:24 -0400 Subject: Fix #12127, fer real. IE9/10 check state on clone. Close gh-875. --- src/manipulation.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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" -- cgit v1.2.3