5 ms·
From the tutorial: > Svelte is giving us a warning: > A11y: <img> element should have an alt attribute > When building web apps, it's important to make sure
by mwcampbell 8y ago
From the tutorial:
> Svelte is giving us a warning:
> A11y: <img> element should have an alt attribute
> When building web apps, it's important to make sure that they're accessible to the broadest possible userbase, including people with (for example) impaired vision or motion, or people without powerful hardware or good internet connections. Accessibility (shortened to a11y) isn't always easy to get right, but Svelte will help by warning you if you write inaccessible markup.
Thank you! We accessibility advocates have wanted this kind of checking to be built into mainstream development tools for years. I hope Svelte becomes popular for this reason alone.
- mediumdeviation 8y agoFor what it's worth, Create React App is bundled with eslint-plugin-jsx-a11y which will give you the same warning
- phailhaus 8y agoEslint already warns you about issues like this, and is framework-agnostic. Does Svelte just use eslint under the hood? Otherwise you risk fracturing the ecosystem with framework-specific a11y requirements.
- seandougall 8y agoAccessibility requirements for the web have a centralized source in the WCAG. As long as linters/checkers conform to that, it doesn’t seem like it should be a source of fragmentation.
- deleted 8y ago[deleted]