Skip to content

Commit 2c7c3e3

Browse files
committed
feat(TAG_DEFINITIONS): include <meta> and <base>
needed to parse index.html as a component template Closes angular#7455
1 parent 756f5d8 commit 2c7c3e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/angular2/src/compiler/html_tags.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ export class HtmlTagDefinition {
327327
// see http://www.w3.org/TR/html51/syntax.html#optional-tags
328328
// This implementation does not fully conform to the HTML5 spec.
329329
var TAG_DEFINITIONS: {[key: string]: HtmlTagDefinition} = {
330+
'base': new HtmlTagDefinition({isVoid: true}),
331+
'meta': new HtmlTagDefinition({isVoid: true}),
330332
'area': new HtmlTagDefinition({isVoid: true}),
331333
'embed': new HtmlTagDefinition({isVoid: true}),
332334
'link': new HtmlTagDefinition({isVoid: true}),

0 commit comments

Comments
 (0)