diff options
author | jeresig <jeresig@gmail.com> | 2009-12-02 15:20:33 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-02 15:20:33 -0500 |
commit | 391f83b2a251abd5ab27aeb52a647a853906ce66 (patch) | |
tree | 31ac88d626298c819ce7a49e4ea33ab0e0fa7b58 /src | |
parent | bfc15b57efb36ea4cedad3fe2c3645e7b6ad84de (diff) | |
download | jquery-391f83b2a251abd5ab27aeb52a647a853906ce66.tar.gz jquery-391f83b2a251abd5ab27aeb52a647a853906ce66.zip |
Fixed logic error in html method - support.leadingWhitespace shouldn't have been negated.
Diffstat (limited to 'src')
-rw-r--r-- | src/manipulation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 2a6b9dc30..105a0a949 100644 --- a/src/manipulation.js +++ b/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 { |