From 1d1c80d377bf3e4ae382a6ecd06624866e620fb6 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 11 Dec 2012 23:05:18 -0500 Subject: [PATCH] copy defaultSelected in cloneFixAttributes --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index bfecbf305..ffaa5c4c4 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -491,7 +491,7 @@ function cloneFixAttributes( src, dest ) { // IE6-8 fails to return the selected option to the default selected // state when cloning options } else if ( nodeName === "option" ) { - dest.selected = src.defaultSelected; + dest.defaultSelected = dest.selected = src.defaultSelected; // IE6-8 fails to set the defaultValue to the correct value when // cloning other types of input fields