During some WAI-ARIA work for a client we came across the automatic setting of title
and alt
attributes on images if those attributes are not already set.
The alt
attribute is set to the description or the title
The title
attribute is set to the title.
In many cases this makes little sense.
If the description is empty and the title was automatically set to the id of the image, both alt
and title
tag get the image id set. Screenreaders do read those information out loud. Users using screenreaders do not gain any useful information and are instead distracted from the content.
I suggest to remove the automatic setting at all or at least only the automatic setting for the alt tag if a description was defined.