From: jeresig Date: Mon, 27 Sep 2010 14:28:35 +0000 (-0400) Subject: Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes... X-Git-Tag: 1.4.3rc1~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88fc523c59465b28633de91f4c9e87b8364064b7;p=jquery.git Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes #7082. --- 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("
").html(valueObj(" "))[0].innerHTML; - ok( /^\s$|^ $/.test( space ), "Make sure entities are passed through correctly." ); + ok( /^\xA0$|^ $/.test( space ), "Make sure entities are passed through correctly." ); equals( jQuery("
").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." ); jQuery("#main").html(valueObj(""));