Skip to content
Browse files
Adapt the nbsp entity test for Opera (output isn't as important as th…
…e fact that it's getting converted.
  • Loading branch information
jeresig committed Feb 13, 2010
1 parent a6f3757 commit 053af95294304f6a1e698191de31cb00c922e665
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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("<div/>").html(valueObj("&#160;"))[0].innerHTML, "&nbsp;", "Make sure entities are passed through correctly." );
var space = jQuery("<div/>").html(valueObj("&#160;"))[0].innerHTML;
ok( /^\s$|^&nbsp;$/.test( space ), "Make sure entities are passed through correctly." );
equals( jQuery("<div/>").html(valueObj("&amp;"))[0].innerHTML, "&amp;", "Make sure entities are passed through correctly." );


0 comments on commit 053af95

Please sign in to comment.