Skip to content
Permalink
Browse files

Adjust manipulation test to handle whitespace RegExp issue in older W…

…ebKits. Fixes #7082.
  • Loading branch information
jeresig committed Sep 27, 2010
1 parent d558e9e commit 88fc523c59465b28633de91f4c9e87b8364064b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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>"));

0 comments on commit 88fc523

Please sign in to comment.
You can’t perform that action at this time.