WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: How to dynamically fix thousands of images missing alt attributes using regular expression find and replace

for

From: Birkir R. Gunnarsson
Date: Jun 14, 2019 1:40PM


They might be able to identify space images based on filenames or
filename patterns, e.g. spacer.gif, arro.gif etc.
An overlay wouldn't be smart enough to know this but it could generate
a Reg Ex based on input from the user of suspect filenames.
I wonder if anyone has actually done analysis on the ratio of
informational to decorative/formatting images on websites in general.



On 6/14/19, Jared Smith < <EMAIL REMOVED> > wrote:
>> That's not quite true - images in links can have alt="" as long as the
>> link also contains text.
>
> Indeed. Or they could instead have an ARIA label. Or a title attribute
> value. Or be hidden altogether and have tabindex="-1". Or...
>
> This just underscores the potential difficulties of using such find
> and replace (or overlay) techniques that don't consider the specific
> instances of (in)accessibility.
>
> Jared
> > > > >


--
Work hard. Have fun. Make history.