Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

Commit 85058de

Browse files
committed
Use only HTML4 tags in tests
1 parent 8fe4bdd commit 85058de

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/htmlbars-compiler/tests/dirtying-test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -652,13 +652,13 @@ test("Setting up a manual element renders and revalidates", function() {
652652
'data-bar': ['get', 'bar']
653653
};
654654

655-
var layout = manualElement('aside', attributes);
655+
var layout = manualElement('span', attributes);
656656

657657
hostBlock(morph, env, scope, template, inverse, null, visitor, function(options) {
658658
options.templates.template.yieldIn({ raw: layout }, hash);
659659
});
660660

661-
manualElement(env, scope, 'aside', attributes, morph);
661+
manualElement(env, scope, 'span', attributes, morph);
662662
},
663663

664664
isStable: function() { return true; }
@@ -667,7 +667,7 @@ test("Setting up a manual element renders and revalidates", function() {
667667
var template = compile("{{#manual-element bar='baz' tld='net'}}Hello {{world}}!{{/manual-element}}");
668668
var result = template.render({ world: "world" }, env);
669669

670-
equalTokens(result.fragment, "<aside title='Tom Dale' data-bar='baz' href='http://tomdale.net'>Hello world!</aside>");
670+
equalTokens(result.fragment, "<span title='Tom Dale' data-bar='baz' href='http://tomdale.net'>Hello world!</span>");
671671
});
672672

673673
test("It is possible to nest multiple templates into a manual element", function() {
@@ -679,7 +679,7 @@ test("It is possible to nest multiple templates into a manual element", function
679679
'data-bar': ['get', 'bar']
680680
};
681681

682-
var elementTemplate = manualElement('aside', attributes);
682+
var elementTemplate = manualElement('span', attributes);
683683

684684
var contentBlock = blockFor(render, template, { scope: scope });
685685

@@ -699,10 +699,10 @@ test("It is possible to nest multiple templates into a manual element", function
699699
isStable: function() { return true; }
700700
};
701701

702-
var layout = compile("<manual-element>{{attrs.foo}}. {{yield}}</manual-element>");
702+
var layout = compile("<em>{{attrs.foo}}. {{yield}}</em>");
703703
var template = compile("{{#manual-element foo='foo' bar='baz' tld='net'}}Hello {{world}}!{{/manual-element}}");
704704
var result = template.render({ world: "world" }, env);
705705

706-
equalTokens(result.fragment, "<aside title='Tom Dale' data-bar='baz' href='http://tomdale.net'><manual-element>foo. Hello world!</manual-element></aside>");
706+
equalTokens(result.fragment, "<span title='Tom Dale' data-bar='baz' href='http://tomdale.net'><em>foo. Hello world!</em></span>");
707707
});
708708

packages/htmlbars-compiler/tests/html-compiler-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ test("Morphs are escaped correctly", function() {
392392

393393
compilesTo('<div>{{{testing-unescaped "<span>hi</span>"}}}</div>', '<div><span>hi</span></div>');
394394
compilesTo('<div>{{testing-escaped "<hi>"}}</div>', '<div>&lt;hi&gt;</div>');
395-
compilesTo('<div>{{#testing-escaped}}<hi></hi>{{/testing-escaped}}</div>', '<div><hi></hi></div>');
396-
compilesTo('<div><testing-escaped><hi></hi></testing-escaped></div>', '<div><hi></hi></div>');
395+
compilesTo('<div>{{#testing-escaped}}<em></em>{{/testing-escaped}}</div>', '<div><em></em></div>');
396+
compilesTo('<div><testing-escaped><em></em></testing-escaped></div>', '<div><em></em></div>');
397397
});
398398

399399
test("Attributes can use computed values", function() {

0 commit comments

Comments
 (0)