Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes #7082.
This commit is contained in:
parent
d558e9eb6f
commit
88fc523c59
|
@ -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(" "))[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("<div/>").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." );
|
||||
|
||||
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));
|
||||
|
|
Loading…
Reference in a new issue