Skip to content

Commit 9a8f823

Browse files
authored
Merge pull request #411 from a-tarasyuk/bug/21450-elementtagnamemap-has-wrong-case-for-camelcase-svg-elements
ElementTagNameMap has wrong case for camelCase SVG elements
2 parents 0339b5a + 3866389 commit 9a8f823

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

baselines/dom.generated.d.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15642,55 +15642,55 @@ interface HTMLElementTagNameMap {
1564215642

1564315643
interface SVGElementTagNameMap {
1564415644
"circle": SVGCircleElement;
15645-
"clippath": SVGClipPathElement;
15645+
"clipPath": SVGClipPathElement;
1564615646
"defs": SVGDefsElement;
1564715647
"desc": SVGDescElement;
1564815648
"ellipse": SVGEllipseElement;
15649-
"feblend": SVGFEBlendElement;
15650-
"fecolormatrix": SVGFEColorMatrixElement;
15651-
"fecomponenttransfer": SVGFEComponentTransferElement;
15652-
"fecomposite": SVGFECompositeElement;
15653-
"feconvolvematrix": SVGFEConvolveMatrixElement;
15654-
"fediffuselighting": SVGFEDiffuseLightingElement;
15655-
"fedisplacementmap": SVGFEDisplacementMapElement;
15656-
"fedistantlight": SVGFEDistantLightElement;
15657-
"feflood": SVGFEFloodElement;
15658-
"fefunca": SVGFEFuncAElement;
15659-
"fefuncb": SVGFEFuncBElement;
15660-
"fefuncg": SVGFEFuncGElement;
15661-
"fefuncr": SVGFEFuncRElement;
15662-
"fegaussianblur": SVGFEGaussianBlurElement;
15663-
"feimage": SVGFEImageElement;
15664-
"femerge": SVGFEMergeElement;
15665-
"femergenode": SVGFEMergeNodeElement;
15666-
"femorphology": SVGFEMorphologyElement;
15667-
"feoffset": SVGFEOffsetElement;
15668-
"fepointlight": SVGFEPointLightElement;
15669-
"fespecularlighting": SVGFESpecularLightingElement;
15670-
"fespotlight": SVGFESpotLightElement;
15671-
"fetile": SVGFETileElement;
15672-
"feturbulence": SVGFETurbulenceElement;
15649+
"feBlend": SVGFEBlendElement;
15650+
"feColorMatrix": SVGFEColorMatrixElement;
15651+
"feComponentTransfer": SVGFEComponentTransferElement;
15652+
"feComposite": SVGFECompositeElement;
15653+
"feConvolveMatrix": SVGFEConvolveMatrixElement;
15654+
"feDiffuseLighting": SVGFEDiffuseLightingElement;
15655+
"feDisplacementMap": SVGFEDisplacementMapElement;
15656+
"feDistantLight": SVGFEDistantLightElement;
15657+
"feFlood": SVGFEFloodElement;
15658+
"feFuncA": SVGFEFuncAElement;
15659+
"feFuncB": SVGFEFuncBElement;
15660+
"feFuncG": SVGFEFuncGElement;
15661+
"feFuncR": SVGFEFuncRElement;
15662+
"feGaussianBlur": SVGFEGaussianBlurElement;
15663+
"feImage": SVGFEImageElement;
15664+
"feMerge": SVGFEMergeElement;
15665+
"feMergeNode": SVGFEMergeNodeElement;
15666+
"feMorphology": SVGFEMorphologyElement;
15667+
"feOffset": SVGFEOffsetElement;
15668+
"fePointLight": SVGFEPointLightElement;
15669+
"feSpecularLighting": SVGFESpecularLightingElement;
15670+
"feSpotLight": SVGFESpotLightElement;
15671+
"feTile": SVGFETileElement;
15672+
"feTurbulence": SVGFETurbulenceElement;
1567315673
"filter": SVGFilterElement;
15674-
"foreignobject": SVGForeignObjectElement;
15674+
"foreignObject": SVGForeignObjectElement;
1567515675
"g": SVGGElement;
1567615676
"image": SVGImageElement;
1567715677
"line": SVGLineElement;
15678-
"lineargradient": SVGLinearGradientElement;
15678+
"linearGradient": SVGLinearGradientElement;
1567915679
"marker": SVGMarkerElement;
1568015680
"mask": SVGMaskElement;
1568115681
"metadata": SVGMetadataElement;
1568215682
"path": SVGPathElement;
1568315683
"pattern": SVGPatternElement;
1568415684
"polygon": SVGPolygonElement;
1568515685
"polyline": SVGPolylineElement;
15686-
"radialgradient": SVGRadialGradientElement;
15686+
"radialGradient": SVGRadialGradientElement;
1568715687
"rect": SVGRectElement;
1568815688
"stop": SVGStopElement;
1568915689
"svg": SVGSVGElement;
1569015690
"switch": SVGSwitchElement;
1569115691
"symbol": SVGSymbolElement;
1569215692
"text": SVGTextElement;
15693-
"textpath": SVGTextPathElement;
15693+
"textPath": SVGTextPathElement;
1569415694
"tspan": SVGTSpanElement;
1569515695
"use": SVGUseElement;
1569615696
"view": SVGViewElement;

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export function emitWebIDl(webidl: Browser.WebIdl, flavor: Flavor) {
468468
for (const e of Object.keys(tagNameToEleName).sort()) {
469469
const value = tagNameToEleName[e];
470470
if (iNameToIDependList[value] && iNameToIDependList[value].includes("SVGElement")) {
471-
printer.printLine(`"${e.toLowerCase()}": ${value};`);
471+
printer.printLine(`"${e}": ${value};`);
472472
}
473473
}
474474
printer.decreaseIndent();

0 commit comments

Comments
 (0)