]> source.dussan.org Git - jquery.git/commitdiff
Fixed an issue with domManip where the incorrect document was being used to create...
authorJohn Resig <jeresig@gmail.com>
Sun, 21 Dec 2008 21:18:40 +0000 (21:18 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 21 Dec 2008 21:18:40 +0000 (21:18 +0000)
src/core.js

index c712cc28b91a3229a61b98b4288cd7da7bc83552..ea043c807be18438db6798f132e3088970e86cf7 100644 (file)
@@ -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;