mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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." );
|
equals( div.children().children().length, 1, "Make sure that a grandchild exists." );
|
||||||
|
|
||||||
var space = jQuery("<div/>").html(valueObj(" "))[0].innerHTML;
|
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." );
|
equals( jQuery("<div/>").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." );
|
||||||
|
|
||||||
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));
|
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));
|
||||||
|
Loading…
Reference in New Issue
Block a user