git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d558e9e
)
Adjust manipulation test to handle whitespace RegExp issue in older WebKits. Fixes...
author
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 14:28:35 +0000
(10:28 -0400)
committer
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 14:28:35 +0000
(10:28 -0400)
test/unit/manipulation.js
patch
|
blob
|
history
diff --git
a/test/unit/manipulation.js
b/test/unit/manipulation.js
index
e1d3dbf
..
2fc6f18
100644
(file)
--- a/
test/unit/manipulation.js
+++ b/
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(" "))[0].innerHTML;
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>"));
equals( jQuery("<div/>").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." );
jQuery("#main").html(valueObj("<style>.foobar{color:green;}</style>"));