Fixed logic error in html method - support.leadingWhitespace shouldn't have been negated.

This commit is contained in:
jeresig 2009-12-02 15:20:33 -05:00
parent bfc15b57ef
commit 391f83b2a2

View 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 {