Skip to content

Commit 22a84b6

Browse files
committed
Don't let IE behave inappropriately, trick him to work as other browsers do
1 parent e53ecd4 commit 22a84b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unit/view.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,17 @@ Echo.Tests.test("public interface", function() {
5858
view.render({
5959
"template": templates.small,
6060
"data": {
61-
"title": "test\"title"
61+
"title": "test'\"title"
6262
}
6363
});
6464
QUnit.ok(!view.get("container"),
6565
"Checking if no elements available after the second \"render\" function call with another template");
6666
QUnit.ok(!!view.get("wrapper"),
6767
"Checking if new elements are available after the second \"render\" function call with another template");
6868
QUnit.equal(
69-
view.get("wrapper").html(),
70-
'<div title="test&quot;title">test"title</div>',
69+
// toLowerCase is for IE8 only (it likes to use capital letters for tag names)
70+
view.get("wrapper").html().toLowerCase(),
71+
'<div title="test\'&quot;title">test\'"title</div>',
7172
"Checking if normalizer properly escapes HTML attributes in \"substitute\" method"
7273
);
7374
});

0 commit comments

Comments
 (0)