-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Split ElementTagNameMap and remove it #20134
Copy link
Copy link
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Type
Fields
Give feedbackNo fields configured for issues without a type.
Some tag names of HTML and SVG are conflicted. So merging these two is wrong.
ElementTagNameMaphas to split intoHTMLElementTagNameMapandSVGElementTagNameMap.For example,
atag is defined in both HTML and SVG.https://developer.mozilla.org/en-US/docs/Web/HTML/Element
https://developer.mozilla.org/en-US/docs/Web/SVG/Element
So the result type of
document.querySelector('a')is defined asHTMLAnchorElementby TypeScript, but the actual type isHTMLAnchorElement | SVGAElement.related: #14783