Skip to content

Commit

Permalink
Adjust manipulation test to handle whitespace RegExp issue in older W…
Browse files Browse the repository at this point in the history
…ebKits. Fixes #7082.
  • Loading branch information
jeresig committed Sep 27, 2010
1 parent d558e9e commit 88fc523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/manipulation.js
Expand Up @@ -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>"));
Expand Down

0 comments on commit 88fc523

Please sign in to comment.