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
|
// See if we can take a shortcut and just use innerHTML
|
||||||
} else if ( typeof value === "string" && !/<script/i.test( value ) &&
|
} 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() ] ) {
|
!wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue