[Bug 22773] Captions in image alt attributes

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22773

--- Comment #1 from steve faulkner <faulkner.steve@gmail.com> ---
(In reply to comment #0)
> In the following example in the draft (4.8.1.1.6), a caption is included in
> the image's alt attribute.
> 
> While this could be a legit use of the alt attribute, I feel it's more
> appropriate to store this information in a figure, with a corresponding
> figcaption. This way the alt attribute of the image can remain related to
> the images content and the figcaption would describe the purpose of the
> figure itself.
> 
> Thoughts?
> 
> Original:
> "<p><img src="figure1.gif" alt="Figure 1. Distribution of Articles by
> Journal Category. 
>   Pie chart: Language=68%, Education=14% and Science=18%."></p>"
> 
> Suggestion:
> "<figure><img src="figure1.gif" alt="Pie chart: Language=60%, Education=14%
> and Science=18%."><figcaptio>Figure 1. Distribution of Articles by Journal
> Category.</figcaption></figure>"

Hi Reiner, in this case the 'caption' text is included in the image, so the
text alternative in the alt attribute is reflecting that.

as it states in the example: "Consider an image containing a pie chart and
associated text. It is recommended wherever possible to provide any associated
text as text, not an image of text. If this is not possible include the text in
the text alternative along with the pertinent information conveyed in the
image.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 23 July 2013 14:50:29 UTC