mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed logic error in html method - support.leadingWhitespace shouldn't have been negated.
This commit is contained in:
parent
bfc15b57ef
commit
391f83b2a2
@ -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 New Issue
Block a user