News for hackers. Stuff that matters.
Re:Next.js 13 by cramforce on Tuesday October 25, 2022 @02:37PM (#33334504)
If you have no alt attribute, then screen readers read the URL!

Empty strings are the way to go for decorative images

Re:Next.js 13 by latchkey on Tuesday October 25, 2022 @03:01PM (#33334775)
What if I have an app that no screen reader will ever read?
Re:Next.js 13 by joshka on Tuesday October 25, 2022 @06:59PM (#33337346)
Then write your own component that extends and removes the requirement. Until then, web tooling is better off explicitly acknowledging that accessibility is an explicit goal.
Re:Next.js 13 by abujazar on Tuesday October 25, 2022 @03:03PM (#33334797)
Alt is a required attribute of the <img> tag, so requiring it is just basic validation. C code won't compile if you omit the semicolon after statements, either.