Closed
Description
TypeScript Version: 2.4.0
The HTMLElementTagNameMap
interface seems to be missing some HTML tags. From the list of new HTML5 elements (I haven't checked anything else), the following are missing:
main
(I have noticed because of this element.)bdi
details
dialog
(Deprecated.)menuitem
rp
summary
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
| null
type declaration. #13644arjunyel commentedon Aug 16, 2017
I recently added the dialog element, I'll look into adding the others microsoft/TypeScript-DOM-lib-generator#272
arjunyel commentedon Aug 17, 2017
I've also added main, details, and summary microsoft/TypeScript-DOM-lib-generator#282
However I'm not sure how to add them to the HTMLElementTagNameMap interface, it seems like this piece of F# code creates it https://github.com/Microsoft/TSJS-lib-generator/blob/master/TS.fsx#L806
inad9300 commentedon Feb 20, 2018
I've noticed that MDN has markead
<menuitem>
(together with<menu>
) as deprecated.inad9300 commentedon Mar 30, 2018
Update: bdi and rp are the only ones missing.
Edit Sorry, my mistake. They are all still missing from
HTMLElementTagNameMap
, I have only noticed that there are interfaces for the others, such asHTMLMainElement
orHTMLSummaryElement
.inad9300 commentedon Mar 30, 2018
A few SVG tags seem to be missing too from
SVGElementTagNameMap
, in particular a, script, style, and title.tonyhallett commentedon Sep 8, 2018
@inad9300 they are missing because they are in the HTMLElementTagNameMap and they cannot be in both whilst the deprecated ElementTagNameMap still remains in the definition file
inad9300 commentedon Jan 26, 2019
Please, reopen this as per microsoft/TypeScript-DOM-lib-generator#609 (comment).
inad9300 commentedon Feb 6, 2019
@RyanCavanaugh thanks for taking care of this. Nevertheless, unless you found something new, the problems listed in the comment I linked were rightly dismissed by @saschanaz, and this issue can therefore remain closed. Sorry for the back and forth.