mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 17:44:59 -05:00
Fix #11359: preserve contents for cloned scripts
This commit is contained in:
committed by
Dave Methvin
parent
f36568324d
commit
dec2804c78
@@ -456,6 +456,10 @@ function cloneFixAttributes( src, dest ) {
|
||||
// cloning other types of input fields
|
||||
} else if ( nodeName === "input" || nodeName === "textarea" ) {
|
||||
dest.defaultValue = src.defaultValue;
|
||||
|
||||
// IE blanks contents when cloning scripts
|
||||
} else if ( nodeName === "script" && dest.text !== src.text ) {
|
||||
dest.text = src.text;
|
||||
}
|
||||
|
||||
// Event data gets referenced instead of copied if the expando
|
||||
|
||||
Reference in New Issue
Block a user