aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-01-28 16:46:52 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-01-28 16:46:52 -0500
commitc746f79cc024df41d9300f3b910a8a55b3c91c3e (patch)
treee4a3c97b71f0095ee39e7d924e0d3f963f1cf0e2 /src/manipulation.js
parent633ca9c1610c49dbb780e565f4f1202e1fe20fae (diff)
downloadjquery-c746f79cc024df41d9300f3b910a8a55b3c91c3e.tar.gz
jquery-c746f79cc024df41d9300f3b910a8a55b3c91c3e.zip
Fix #10878. Clear oldIE special change/submit flags on a clone.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index e3a7f6b12..52a869dae 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -461,6 +461,11 @@ function cloneFixAttributes( src, dest ) {
// Event data gets referenced instead of copied if the expando
// gets copied too
dest.removeAttribute( jQuery.expando );
+
+ // Clear flags for bubbling special change/submit events, they must
+ // be reattached when the newly cloned events are first activated
+ dest.removeAttribute( "_submit_attached" );
+ dest.removeAttribute( "_change_attached" );
}
jQuery.buildFragment = function( args, nodes, scripts ) {