Fixed logic error in html method - support.leadingWhitespace shouldn't have been negated.
This commit is contained in:
parent
bfc15b57ef
commit
391f83b2a2
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue