Skip to content

Missing HTML tags #17828

Closed
Closed
@inad9300

Description

@inad9300

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

Activity

arjunyel

arjunyel commented on Aug 16, 2017

@arjunyel

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

added
BugA bug in TypeScript
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript
on Aug 16, 2017
arjunyel

arjunyel commented on Aug 17, 2017

@arjunyel

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

added this to the Community milestone on Aug 21, 2017
inad9300

inad9300 commented on Feb 20, 2018

@inad9300
Author

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

inad9300

inad9300 commented on Mar 30, 2018

@inad9300
Author

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

inad9300 commented on Mar 30, 2018

@inad9300
Author

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

tonyhallett

tonyhallett commented on Sep 8, 2018

@tonyhallett

@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

inad9300 commented on Jan 26, 2019

@inad9300
Author
inad9300

inad9300 commented on Feb 6, 2019

@inad9300
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @inad9300@RyanCavanaugh@mhegazy@arjunyel@tonyhallett

        Issue actions

          Missing HTML tags · Issue #17828 · microsoft/TypeScript