diff options
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 082c4e9d6..d88400d1f 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("<div/>").html(valueObj(" "))[0].innerHTML, " ", "Make sure entities are passed through correctly." ); + var space = jQuery("<div/>").html(valueObj(" "))[0].innerHTML; + ok( /^\s$|^ $/.test( space ), "Make sure entities are passed through correctly." ); equals( jQuery("<div/>").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." ); jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>")); |