aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2010-12-06 19:37:16 -0600
committerColin Snover <github.com@zetafleet.com>2010-12-06 19:37:16 -0600
commite4900df8389c85350d1d82c827fab0d4b91989d6 (patch)
tree2095a41d28ab957d788797fb1bbb25b3b4f60321 /src
parentc8be9461eed2cd01fb45ae504f92f80fe72bddde (diff)
downloadjquery-e4900df8389c85350d1d82c827fab0d4b91989d6.tar.gz
jquery-e4900df8389c85350d1d82c827fab0d4b91989d6.zip
Clone fragments in domManip using jQuery.clone instead of DocumentFragment.cloneNode in order to carry over event data. Fixes #5566, #6997.
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 5b53da861..c592b7a43 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -349,7 +349,7 @@ jQuery.fn.extend({
root(this[i], first) :
this[i],
i > 0 || results.cacheable || this.length > 1 ?
- fragment.cloneNode(true) :
+ jQuery(fragment).clone(true)[0] :
fragment
);
}