mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix domManip leaks the first element when appending elements to multiple other elements.
This commit is contained in:
parent
8e59a99e0a
commit
885d06c8ef
@ -346,7 +346,7 @@ jQuery.fn.extend({
|
|||||||
table ?
|
table ?
|
||||||
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 && i > 0) ?
|
||||||
jQuery(fragment).clone(true)[0] :
|
jQuery(fragment).clone(true)[0] :
|
||||||
fragment
|
fragment
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user