From e4900df8389c85350d1d82c827fab0d4b91989d6 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Mon, 6 Dec 2010 19:37:16 -0600 Subject: Clone fragments in domManip using jQuery.clone instead of DocumentFragment.cloneNode in order to carry over event data. Fixes #5566, #6997. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ); } -- cgit v1.2.3