aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-27 10:28:35 -0400
committerjeresig <jeresig@gmail.com>2010-09-27 10:28:35 -0400
commit88fc523c59465b28633de91f4c9e87b8364064b7 (patch)
tree89158cced3798af030c605f14d244e7a38988279 /test/unit/manipulation.js
parentd558e9eb6f44783bb06666617c758408daf53e3d (diff)
downloadjquery-88fc523c59465b28633de91f4c9e87b8364064b7.tar.gz
jquery-88fc523c59465b28633de91f4c9e87b8364064b7.zip
Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes #7082.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index e1d3dbf6a..2fc6f1889 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -899,7 +899,7 @@ var testHtml = function(valueObj) {
equals( div.children().children().length, 1, "Make sure that a grandchild exists." );
var space = jQuery("<div/>").html(valueObj("&#160;"))[0].innerHTML;
- ok( /^\s$|^&nbsp;$/.test( space ), "Make sure entities are passed through correctly." );
+ ok( /^\xA0$|^&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>"));