]> source.dussan.org Git - jquery.git/commitdiff
copy defaultSelected in cloneFixAttributes
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 12 Dec 2012 04:05:18 +0000 (23:05 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Wed, 12 Dec 2012 04:05:18 +0000 (23:05 -0500)
src/manipulation.js

index bfecbf305ff893f7298958b77842d8ebc47cb425..ffaa5c4c456a8a5e42bbdc8ff4fd0185416e8dd1 100644 (file)
@@ -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