aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-13 07:05:39 -0500
committerjeresig <jeresig@gmail.com>2010-02-13 07:05:39 -0500
commit053af95294304f6a1e698191de31cb00c922e665 (patch)
tree7884639f59530b1a9a8609299ddd34414bb29aff /test
parenta6f3757d50f8be021505f4f7fa7201199e8b7f2d (diff)
downloadjquery-053af95294304f6a1e698191de31cb00c922e665.tar.gz
jquery-053af95294304f6a1e698191de31cb00c922e665.zip
Adapt the nbsp entity test for Opera (output isn't as important as the fact that it's getting converted.
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js3
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("&#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." );
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));