ElementTagNameMap has wrong case for camelCase SVG elements #21450
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: master
Code
Expected behavior:
.querySelector('linearGradient')
should return a
SVGLinearGradientElement
Actual behavior:
The
*TagNameMap
maps the wrong case to theSvgElement
typehttps://github.com/Microsoft/TypeScript/blob/02e79849ef7259a1985391d85faea1cd6d86c3d0/lib/lib.d.ts#L19129
Probably effected:
clipPath, componentTransferFunction, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, foreignObject, linearGradient, radialGradient, textContent, textPath, textPositioning
The text was updated successfully, but these errors were encountered: