feat(HtmlParser): enforce only void & foreign elts can be self closed
BREAKING CHANGE: `<whatever />` used to be expanded to `<whatever></whatever>`. The parser now follows the HTML5 spec more closely. Only void and foreign elements can be self closed. Closes #5591
This commit is contained in:
@ -352,7 +352,8 @@ void allTests() {
|
||||
});
|
||||
|
||||
it('should include platform directives.', () async {
|
||||
fooComponentMeta.template = new CompileTemplateMetadata(template: '<bar/>');
|
||||
fooComponentMeta.template = new CompileTemplateMetadata(
|
||||
template: '<bar></bar>');
|
||||
final viewAnnotation = new AnnotationModel()
|
||||
..name = 'View'
|
||||
..isView = true;
|
||||
@ -370,7 +371,8 @@ void allTests() {
|
||||
});
|
||||
|
||||
it('should include platform directives when it it a list.', () async {
|
||||
fooComponentMeta.template = new CompileTemplateMetadata(template: '<bar/>');
|
||||
fooComponentMeta.template = new CompileTemplateMetadata(
|
||||
template: '<bar></bar>');
|
||||
final viewAnnotation = new AnnotationModel()
|
||||
..name = 'View'
|
||||
..isView = true;
|
||||
|
Reference in New Issue
Block a user