<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10488</bug_id>
          
          <creation_ts>2010-08-29 01:36:13 +0000</creation_ts>
          <short_desc>&lt;figcaption&gt; captions the &lt;figure&gt; element, or how to use the &lt;figure&gt; element to provide useful text alternatives</short_desc>
          <delta_ts>2010-12-06 16:34:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 alt techniques (editor: Steven Faulkner)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/alt-techniques/#hf</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38150</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-08-29 01:36:13 +0000</bug_when>
    <thetext>This is considered input  to the section &quot;The figure and figcaption elements&quot; in the ALT-techniques document.

Please state  and operate under the assumption  that the &lt;figcaption&gt; element captions the entire &lt;figure&gt; element, and describe how to use &lt;figure&gt; accordingly. Also, it seems 

For reference, see these bugs against the HTML5 spec:

Bug 10480    add role=&quot;presentation&quot; on the ASCII fish image
Bug 10483   &lt;figcaption&gt; should be considered the caption of &lt;figure&gt; _itself_
Bug 10484   default roles for figcaption and caption: Make it simple to achieve accessibility

              Background:

FIRSTLY: In a blog comment this summer, you went against ARIA 1.0 when you suggested following coding style for an img element in a photo site: [1] 

     ]] I would recommend that the image have no alt attribute and an aria-labelledby that references the &lt;figcaption&gt; as figure/figcaption are not supported by ATs [snip] This way the image is identified as an image to the user and it is explcitly labelled. [[

Examplified in code. where the use of role&apos;s taking the A11Y TF&apos;s ARIA mapping proposal [2] as basis:

&lt;figure role=&quot;&quot; &gt;&lt;!-- no role --&gt;
  &lt;img src=&quot;example.png&quot; role=&quot;img&quot; aria-labelledby=&quot;caption&quot; &gt;
  &lt;figcaption id=&quot;caption&quot;&gt;A visible text caption labeling the image.&lt;/figcaption&gt;
&lt;/figure&gt;

By contrast, ARIA 1.0 recommends an empty @alt in the same use case  and it also has a different use of @role and aria-labelledby. The ARIA 1.0 example: [3]

&lt;div role=&quot;img&quot; aria-labelledby=&quot;caption&quot;&gt;
  &lt;img src=&quot;example.png&quot; role=&quot;presentation&quot; alt=&quot;&quot;&gt;
  &lt;p id=&quot;caption&quot;&gt;A visible text caption labeling the image.&lt;/p&gt;
&lt;/div&gt;

If the ARIA 1.0 example were to be expressed using a &lt;figure&gt; element instead, then it would have looked like this:

&lt;figure role=&quot;img&quot; aria-labelledby=&quot;caption&quot;&gt;
  &lt;img src=&quot;example.png&quot; role=&quot;presentation&quot; alt=&quot;&quot;&gt;
  &lt;figcaption id=&quot;caption&quot;&gt;A visible text caption labeling the image.&lt;/figcaption&gt;
&lt;/figure&gt;

SECONDLY: In the alt-techniques document, you make a similar statement:

     ]] When supported by browsers and assistive technology the content of the figcaption will be explicitly associated with the image. [[

The correct thing to say, however, is that the &lt;figcaption&gt; will be explicitly associated with the _figure_ element. I honestly don&apos;t know what happens when, as you suggested this summer, the &lt;img&gt; lists the &lt;figcaption&gt; as its caption  would it mean that the &lt;figcaption&gt; stops being an caption to the &lt;figure&gt; element? (See bug 10484  perhaps the default role of &lt;figcaption&gt; should depend on the roile of the &lt;figure&gt;.)

So, taking my above recast of the ARIA 1.0 example as a figure element as starting piont, what kind of explicit association would supporting browsers and assistive technology provide once &lt;figure&gt; is supported? Answer: the only explicit association it would offer, would assocaiton between the &lt;figcaption&gt; and the &lt;figure&gt; element. Thus, we would   in principle, but perhaps not as best practice   not need to use the aria-labelledby attribute which the ARIA 1.0 example uses (and we could also remove role=&quot;presentation&quot; due to alt=&quot;&quot;). Thus we end up with this:

&lt;figure role=&quot;img&quot; &gt;
  &lt;img src=&quot;example.png&quot; alt=&quot;&quot;&gt;
  &lt;figcaption&gt;A visible text caption labeling the image.&lt;/figcaption&gt;
&lt;/figure&gt;

This example is also pretty much in line with the HTML5&apos;s ASCII art figure example  see bug 10480.

Also: if the figure element above did _not_ have role=&quot;img&quot;, then &lt;figcaption&gt; would caption an element which has no role ... according to the ARIA mapping prposal[2]. (_That_ to me sounds irrantional - but I guess that&apos;s another bug against another spec - figure should have _some_ default role, I think.)

[1] http://rebuildingtheweb.com/en/no-alt-text-for-photo-sharing-sites/#c20100729051201
[2] http://www.paciellogroup.com/blog/misc/HTML5/aria-html5-proposal.html
[3] http://www.w3.org/TR/wai-aria/roles#presentation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38408</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2010-09-02 13:42:58 +0000</bug_when>
    <thetext>Bug triage sub-team notes the task force has an interest in this but does not need to prioritize its work on these. Steve and the reporters can follow the usual process on these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43088</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-12-06 16:34:39 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: accepted
Change Description: in process of adding information about figure/figcaption use, am waiting on implemntor feedback and nailing down of role mappings before formalising spec text.
Rationale: agree that this is an important consideration.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>