mirror of
https://github.com/jquery/jquery.git
synced 2026-02-05 16:45:03 -05:00
Fix domManip leaks the first element when appending elements to multiple other elements.
This commit is contained in:
@@ -346,7 +346,7 @@ jQuery.fn.extend({
|
||||
table ?
|
||||
root(this[i], first) :
|
||||
this[i],
|
||||
i > 0 || results.cacheable || this.length > 1 ?
|
||||
i > 0 || results.cacheable || (this.length > 1 && i > 0) ?
|
||||
jQuery(fragment).clone(true)[0] :
|
||||
fragment
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user