copy defaultSelected in cloneFixAttributes

This commit is contained in:
Richard Gibson 2012-12-11 23:05:18 -05:00
parent 32842ac365
commit 1d1c80d377

View 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