Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an issue with domManip where the incorrect document was being u…

…sed to create the document fragment.
  • Loading branch information...
commit 8ee1708ea93517f69979a6805480597b96b58da7 1 parent 6048e40
@jeresig jeresig authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core.js
View
2  src/core.js
@@ -501,7 +501,7 @@ jQuery.fn = jQuery.prototype = {
domManip: function( args, table, callback ) {
if ( this[0] ) {
- var fragment = document.createDocumentFragment(),
+ var fragment = this[0].ownerDocument.createDocumentFragment(),
scripts = jQuery.clean( args, this[0].ownerDocument, fragment ),
first = fragment.firstChild,
extra = this.length > 1 ? fragment.cloneNode(true) : fragment;
Please sign in to comment.
Something went wrong with that request. Please try again.