]> source.dussan.org Git - jquery.git/commitdiff
Fixed logic error in html method - support.leadingWhitespace shouldn't have been...
authorjeresig <jeresig@gmail.com>
Wed, 2 Dec 2009 20:20:33 +0000 (15:20 -0500)
committerjeresig <jeresig@gmail.com>
Wed, 2 Dec 2009 20:20:33 +0000 (15:20 -0500)
src/manipulation.js

index 2a6b9dc3009064efa1e995bfe117690158bad5e2..105a0a949bbfc4da1ada191d2ccf89324923478b 100644 (file)
@@ -197,7 +197,7 @@ jQuery.fn.extend({
 
                // See if we can take a shortcut and just use innerHTML
                } else if ( typeof value === "string" && !/<script/i.test( value ) &&
-                       (!jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                        !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
 
                        try {