mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added a fix for .html("") not working correctly.
This commit is contained in:
parent
4b2028896d
commit
6350e8a7e0
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1387,6 +1387,8 @@ jQuery.extend({
|
||||
for ( var i = 0, al = a.length; i < al; i++ ) {
|
||||
var arg = a[i];
|
||||
|
||||
if ( !arg ) continue;
|
||||
|
||||
// Convert html string into DOM nodes
|
||||
if ( typeof arg == "string" ) {
|
||||
// Trim whitespace, otherwise indexOf won't work as expected
|
||||
|
Loading…
Reference in New Issue
Block a user