Commit 88fc523c authored by jeresig's avatar jeresig

Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes #7082.

parent d558e9eb
...@@ -899,7 +899,7 @@ var testHtml = function(valueObj) { ...@@ -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("&#160;"))[0].innerHTML; 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." ); 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>")); jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment