mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 02:04:55 -05:00
Fix #11566, allow appending to DocumentFragment, closes gh-814.
This commit is contained in:
committed by
Dave Methvin
parent
0b352f6cb5
commit
9c28a320c3
@@ -127,7 +127,7 @@ jQuery.fn.extend({
|
||||
|
||||
append: function() {
|
||||
return this.domManip(arguments, true, function( elem ) {
|
||||
if ( this.nodeType === 1 ) {
|
||||
if ( this.nodeType === 1 || this.nodeType === 11 ) {
|
||||
this.appendChild( elem );
|
||||
}
|
||||
});
|
||||
@@ -135,7 +135,7 @@ jQuery.fn.extend({
|
||||
|
||||
prepend: function() {
|
||||
return this.domManip(arguments, true, function( elem ) {
|
||||
if ( this.nodeType === 1 ) {
|
||||
if ( this.nodeType === 1 || this.nodeType === 11 ) {
|
||||
this.insertBefore( elem, this.firstChild );
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user