mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ref gh-1117: Don't stop on a falsy value in buildFragment.
(cherry picked from commit 8e6c1ba92f)
This commit is contained in:
@@ -395,7 +395,7 @@ var testAppendForObject = function( valueObj, isFragment ) {
|
||||
|
||||
var testAppend = function( valueObj ) {
|
||||
|
||||
expect( 59 );
|
||||
expect( 60 );
|
||||
|
||||
testAppendForObject( valueObj, false );
|
||||
testAppendForObject( valueObj, true );
|
||||
@@ -464,6 +464,7 @@ var testAppend = function( valueObj ) {
|
||||
t( "Append Select", "#appendSelect1, #appendSelect2", [ "appendSelect1", "appendSelect2" ] );
|
||||
|
||||
equal( "Two nodes", jQuery("<div />").append( "Two", " nodes" ).text(), "Appending two text nodes (#4011)" );
|
||||
equal( jQuery("<div />").append( "1", "", 3 ).text(), "13", "If median is false-like value, subsequent arguments should not be ignored" );
|
||||
|
||||
// using contents will get comments regular, text, and comment nodes
|
||||
j = jQuery("#nonnodes").contents();
|
||||
|
||||
Reference in New Issue
Block a user