From: Richard Gibson Date: Wed, 12 Dec 2012 04:05:18 +0000 (-0500) Subject: copy defaultSelected in cloneFixAttributes X-Git-Tag: 1.9.0b1~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d1c80d377bf3e4ae382a6ecd06624866e620fb6;p=jquery.git copy defaultSelected in cloneFixAttributes --- 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