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 2a6b9dc..105a0a9 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 {