Skip to content
Permalink
Browse files

No commit message

  • Loading branch information...
cmcnulty committed Feb 25, 2011
1 parent 00a05ad commit 8415e8a13d0e1203a53d9c871fdcc4575c9d0760
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/unit/manipulation.js
@@ -1080,6 +1080,19 @@ var testHtml = function(valueObj) {
equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "STYLE", "And that a style element was inserted." );

QUnit.reset();

jQuery("#main").html(valueObj("<embed src='data/cow.jpg'></embed>"));
ok((jQuery("#main").children().length > 0), "Make sure there is a child EMBED element." );
equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "EMBED", "And that an embed element was inserted." );

QUnit.reset();

jQuery("#main").html(valueObj("<object data='data/cow.jpg'></object>"));
equals( jQuery("#main").children().length, 1, "Make sure there is a child OBJECT element." );
equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "OBJECT", "And that an object element was inserted." );

QUnit.reset();

// using contents will get comments regular, text, and comment nodes
var j = jQuery("#nonnodes").contents();
j.html(valueObj("<b>bold</b>"));

0 comments on commit 8415e8a

Please sign in to comment.
You can’t perform that action at this time.