WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Regarding images lacking alts

for

From: Jukka K. Korpela
Date: Dec 4, 2012 2:38PM


2012-12-04 23:26, Bryan Garaventa wrote:

> Hi, I still experience this all over the place on the web, and it's sort of annoying.

Images without alt attributes can be annoying, or worse, and so can
images with bogus alt attributes.

> Here is a jQuery script that fixes it dynamically

I don't see which problem it would solve. It just assigns an alt
property to any img element that lacks it, using the title attribute
value if present, and the empty string otherwise.

If an author has not provided the required, essential alt attribute but
has provided the optional, advisory title attributes, what are the odds
that the title attribute value is adequate for use in the role of an
attribute?

Besides, the operation would remove the distinction between images with
no alt attribute and images with alt="". The latter is explicit
information that says that nothing should appear instead of the image if
it is not displayed, normally because the image is decorative only or
its content is also presented in text. Lack of alt attribute is simply
lack of information about adequate text replacement.

Yucca