Commit 053af952 authored by jeresig's avatar jeresig

Adapt the nbsp entity test for Opera (output isn't as important as the fact...

Adapt the nbsp entity test for Opera (output isn't as important as the fact that it's getting converted.
parent a6f3757d
...@@ -883,7 +883,8 @@ var testHtml = function(valueObj) { ...@@ -883,7 +883,8 @@ var testHtml = function(valueObj) {
equals( div.children().length, 2, "Make sure two child nodes exist." ); equals( div.children().length, 2, "Make sure two child nodes exist." );
equals( div.children().children().length, 1, "Make sure that a grandchild exists." ); 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." ); equals( jQuery("<div/>").html(valueObj("&amp;"))[0].innerHTML, "&amp;", "Make sure entities are passed through correctly." );
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>")); jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment