X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=d88400d1fd459b9212850d38530f6e886431c8c6;hb=053af95294304f6a1e698191de31cb00c922e665;hp=082c4e9d62eecae6a10feeb8d7dfb0b06eae7d8a;hpb=a6f3757d50f8be021505f4f7fa7201199e8b7f2d;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 082c4e9..d88400d 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -883,7 +883,8 @@ var testHtml = function(valueObj) { equals( div.children().length, 2, "Make sure two child nodes exist." ); equals( div.children().children().length, 1, "Make sure that a grandchild exists." ); - equals( jQuery("
").html(valueObj(" "))[0].innerHTML, " ", "Make sure entities are passed through correctly." ); + var space = jQuery("
").html(valueObj(" "))[0].innerHTML; + ok( /^\s$|^ $/.test( space ), "Make sure entities are passed through correctly." ); equals( jQuery("
").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." ); jQuery("#main").html(valueObj(""));