Commit e4900df8 authored by Colin Snover's avatar Colin Snover

Clone fragments in domManip using jQuery.clone instead of...

Clone fragments in domManip using jQuery.clone instead of DocumentFragment.cloneNode in order to carry over event data. Fixes #5566, #6997.
parent c8be9461
...@@ -349,7 +349,7 @@ jQuery.fn.extend({ ...@@ -349,7 +349,7 @@ jQuery.fn.extend({
root(this[i], first) : root(this[i], first) :
this[i], this[i],
i > 0 || results.cacheable || this.length > 1 ? i > 0 || results.cacheable || this.length > 1 ?
fragment.cloneNode(true) : jQuery(fragment).clone(true)[0] :
fragment fragment
); );
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment