Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes...
authorjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 14:28:35 +0000 (10:28 -0400)
committerjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 14:28:35 +0000 (10:28 -0400)
test/unit/manipulation.js

index e1d3dbf..2fc6f18 100644 (file)
@@ -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>"));