aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-02 15:20:33 -0500
committerjeresig <jeresig@gmail.com>2009-12-02 15:20:33 -0500
commit391f83b2a251abd5ab27aeb52a647a853906ce66 (patch)
tree31ac88d626298c819ce7a49e4ea33ab0e0fa7b58 /src
parentbfc15b57efb36ea4cedad3fe2c3645e7b6ad84de (diff)
downloadjquery-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.js2
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 {