@@ -310,11 +310,16 @@ export class HtmlTagDefinition {
310310// see http://www.w3.org/TR/html51/syntax.html#optional-tags
311311// This implementation does not fully conform to the HTML5 spec.
312312var TAG_DEFINITIONS : { [ key : string ] : HtmlTagDefinition } = {
313+ 'area' : new HtmlTagDefinition ( { isVoid : true } ) ,
314+ 'embed' : new HtmlTagDefinition ( { isVoid : true } ) ,
313315 'link' : new HtmlTagDefinition ( { isVoid : true } ) ,
314316 'img' : new HtmlTagDefinition ( { isVoid : true } ) ,
315317 'input' : new HtmlTagDefinition ( { isVoid : true } ) ,
318+ 'param' : new HtmlTagDefinition ( { isVoid : true } ) ,
316319 'hr' : new HtmlTagDefinition ( { isVoid : true } ) ,
317320 'br' : new HtmlTagDefinition ( { isVoid : true } ) ,
321+ 'source' : new HtmlTagDefinition ( { isVoid : true } ) ,
322+ 'track' : new HtmlTagDefinition ( { isVoid : true } ) ,
318323 'wbr' : new HtmlTagDefinition ( { isVoid : true } ) ,
319324 'p' : new HtmlTagDefinition ( {
320325 closedByChildren : [
@@ -357,7 +362,7 @@ var TAG_DEFINITIONS: {[key: string]: HtmlTagDefinition} = {
357362 } ) ,
358363 'td' : new HtmlTagDefinition ( { closedByChildren : [ 'td' , 'th' ] , closedByParent : true } ) ,
359364 'th' : new HtmlTagDefinition ( { closedByChildren : [ 'td' , 'th' ] , closedByParent : true } ) ,
360- 'col' : new HtmlTagDefinition ( { closedByChildren : [ 'col ' ] , requiredParents : [ 'colgroup' ] } ) ,
365+ 'col' : new HtmlTagDefinition ( { requiredParents : [ 'colgroup ' ] , isVoid : true } ) ,
361366 'svg' : new HtmlTagDefinition ( { implicitNamespacePrefix : 'svg' } ) ,
362367 'math' : new HtmlTagDefinition ( { implicitNamespacePrefix : 'math' } ) ,
363368 'li' : new HtmlTagDefinition ( { closedByChildren : [ 'li' ] , closedByParent : true } ) ,
0 commit comments