[Bug 22773] New: Captions in image alt attributes

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

            Bug ID: 22773
           Summary: Captions in image alt attributes
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: rp.kaper@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

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>"

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

Received on Tuesday, 23 July 2013 14:37:55 UTC