Skip to content

Commit

Permalink
Move more deprecated HTML element tags to HTMLElementDeprecatedTagNam…
Browse files Browse the repository at this point in the history
…eMap (microsoft#1319)

Co-authored-by: saschanaz <[email protected]>
  • Loading branch information
saschanaz and saschanaz committed Apr 29, 2022
1 parent bc58e78 commit 1ea3a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17457,7 +17457,6 @@ interface HTMLElementTagNameMap {
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"dir": HTMLDirectoryElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
Expand All @@ -17466,11 +17465,8 @@ interface HTMLElementTagNameMap {
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"font": HTMLFontElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
Expand All @@ -17495,7 +17491,6 @@ interface HTMLElementTagNameMap {
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"marquee": HTMLMarqueeElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
Expand Down Expand Up @@ -17549,7 +17544,12 @@ interface HTMLElementTagNameMap {
}

interface HTMLElementDeprecatedTagNameMap {
"dir": HTMLDirectoryElement;
"font": HTMLFontElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"listing": HTMLPreElement;
"marquee": HTMLMarqueeElement;
"xmp": HTMLPreElement;
}

Expand Down
2 changes: 1 addition & 1 deletion src/build/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function emitWebIdl(
for (const e of i.element) {
if (e.namespace === "SVG") {
svgResult[e.name] = i.name;
} else if (e.deprecated) {
} else if (e.deprecated || i.deprecated) {
htmlDeprecatedResult[e.name] = i.name;
} else {
htmlResult[e.name] = i.name;
Expand Down

0 comments on commit 1ea3a36

Please sign in to comment.