Skip to content

Missing HTML tags #17828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
inad9300 opened this issue Aug 16, 2017 · 8 comments
Closed

Missing HTML tags #17828

inad9300 opened this issue Aug 16, 2017 · 8 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this

Comments

@inad9300
Copy link

inad9300 commented Aug 16, 2017

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
  • menuitem (Deprecated.)
  • rp
  • summary
@arjunyel
Copy link

I recently added the dialog element, I'll look into adding the others microsoft/TypeScript-DOM-lib-generator#272

@RyanCavanaugh RyanCavanaugh added Help Wanted You can do this Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Aug 16, 2017
@arjunyel
Copy link

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
Copy link
Author

I've noticed that MDN has markead <menuitem> (together with <menu>) as deprecated.

@inad9300
Copy link
Author

inad9300 commented 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 as HTMLMainElement or HTMLSummaryElement.

@inad9300
Copy link
Author

A few SVG tags seem to be missing too from SVGElementTagNameMap, in particular a, script, style, and title.

@tonyhallett
Copy link

@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
Copy link
Author

Please, reopen this as per microsoft/TypeScript-DOM-lib-generator#609 (comment).

@RyanCavanaugh RyanCavanaugh reopened this Feb 5, 2019
@inad9300
Copy link
Author

inad9300 commented 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.

@inad9300 inad9300 closed this as completed Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

5 participants