diff --git a/src/manipulation.js b/src/manipulation.js index a10feae93..a58e52b6a 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -5,7 +5,7 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rtagName = /<([\w:]+)/, rtbody = /
").html(valueObj(" "))[0].innerHTML, " ", "Make sure entities are passed through correctly." ); equals( jQuery("").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." ); + jQuery("#main").html(valueObj("")); + + equals( jQuery("#main").children().length, 1, "Make sure there is a child element." ); + equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "STYLE", "And that a style element was inserted." ); + reset(); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents();