4 ms·
The HTML spec says it is required, even if you don’t think it should be required it is. https://html.spec.whatwg.org/multipage/images.html#alt https://html.spec
by joshribakoff 4y ago
The HTML spec says it is required, even if you don’t think it should be required it is. https://html.spec.whatwg.org/multipage/images.html#alt https://html.spec.whatwg.org/multipage/images.html#alt
- latchkey 4y agoNextJS could just create alt="" when rendering the HTML <img> element from their <Image> element.
- deleted 4y ago[deleted]
- Vinnl 4y agoNext.js can't determine what the value of the alt tag should be, i.e. whether it should actually be empty. If it would do this, it would actually tell screen reader users that the image is decorative, instead of warning them that there might be information conveyed in the image that the developer forgot to label.
- MaxLeiter 4y agoThat could harm the experience for assistive tech users more than no alt tag
- dariusj18 4y agoI think the compromise would be an optional build parameter that allows this functionality.
- Serenacula 4y agoFrameworks shouldn't be changing the content you coded on the sly, that's just asking for trouble. Imagine trying to debug that.