Not all svg attributes exist when using typescript #387
Labels
bug
Something isn't working
Fixed
Fixed in master branch. Pending production release.
good first issue
Good for newcomers
Describe the bug
When using typescript,
role
andtabIndex
do not exist on svg elements. This leads me to believe that the jsx type declaration file is outdated.To Reproduce
src/App.svelte
with:npm run validate
returns the following errors:Expected behavior
I would expect svelte with typescript to have out-of-the-box support for standard SVG attributes. Note that
xlink:role
works, but it seems to me that the svg standard prefersrole
instead ofxlink:role
.I added
aria-roledescription
in my example just to check whether this applies to all aria attributes. That is not the case.System (please complete the following information):
The text was updated successfully, but these errors were encountered: