Skip to content
Permalink
Browse files

Fixed logic error in html method - support.leadingWhitespace shouldn'…

…t have been negated.
  • Loading branch information
jeresig committed Dec 2, 2009
1 parent bfc15b5 commit 391f83b2a251abd5ab27aeb52a647a853906ce66
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/manipulation.js
@@ -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 {

0 comments on commit 391f83b

Please sign in to comment.
You can’t perform that action at this time.