feat(TAG_DEFINITIONS): include <meta> and <base>

needed to parse index.html as a component template
Closes #7455
This commit is contained in:
PatrickJS 2016-03-06 22:39:36 -08:00
parent 756f5d884f
commit 2c7c3e3c69
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ export class HtmlTagDefinition {
// see http://www.w3.org/TR/html51/syntax.html#optional-tags // see http://www.w3.org/TR/html51/syntax.html#optional-tags
// This implementation does not fully conform to the HTML5 spec. // This implementation does not fully conform to the HTML5 spec.
var TAG_DEFINITIONS: {[key: string]: HtmlTagDefinition} = { var TAG_DEFINITIONS: {[key: string]: HtmlTagDefinition} = {
'base': new HtmlTagDefinition({isVoid: true}),
'meta': new HtmlTagDefinition({isVoid: true}),
'area': new HtmlTagDefinition({isVoid: true}), 'area': new HtmlTagDefinition({isVoid: true}),
'embed': new HtmlTagDefinition({isVoid: true}), 'embed': new HtmlTagDefinition({isVoid: true}),
'link': new HtmlTagDefinition({isVoid: true}), 'link': new HtmlTagDefinition({isVoid: true}),