diff options
author | Colin Snover <github.com@zetafleet.com> | 2010-12-06 19:37:16 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2010-12-06 19:37:16 -0600 |
commit | e4900df8389c85350d1d82c827fab0d4b91989d6 (patch) | |
tree | 2095a41d28ab957d788797fb1bbb25b3b4f60321 /src | |
parent | c8be9461eed2cd01fb45ae504f92f80fe72bddde (diff) | |
download | jquery-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.js | 2 |
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 ); } |