Skip to content

Commit

Permalink
Don't let IE behave inappropriately, trick him to work as other brows…
Browse files Browse the repository at this point in the history
…ers do
  • Loading branch information
vlizard committed Dec 30, 2014
1 parent e53ecd4 commit 22a84b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ Echo.Tests.test("public interface", function() {
view.render({
"template": templates.small,
"data": {
"title": "test\"title"
"title": "test'\"title"
}
});
QUnit.ok(!view.get("container"),
"Checking if no elements available after the second \"render\" function call with another template");
QUnit.ok(!!view.get("wrapper"),
"Checking if new elements are available after the second \"render\" function call with another template");
QUnit.equal(
view.get("wrapper").html(),
'<div title="test&quot;title">test"title</div>',
// toLowerCase is for IE8 only (it likes to use capital letters for tag names)
view.get("wrapper").html().toLowerCase(),
'<div title="test\'&quot;title">test\'"title</div>',
"Checking if normalizer properly escapes HTML attributes in \"substitute\" method"
);
});
Expand Down

0 comments on commit 22a84b6

Please sign in to comment.