<?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>28404</bug_id>
          
          <creation_ts>2015-04-03 16:30:10 +0000</creation_ts>
          <short_desc>Calculating the accessible name of a table based on caption is sometimes not ideal</short_desc>
          <delta_ts>2018-05-03 21:19:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>ARIA</product>
          <component>HTML AAM</component>
          <version>Future</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joanmarie Diggs">jdiggs</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>jason</cc>
    
    <cc>john</cc>
    
    <cc>surkov.alexander</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119225</commentid>
    <comment_count>0</comment_count>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2015-04-03 16:30:10 +0000</bug_when>
    <thetext>Apologies for the vague summary, but since it&apos;s not clear what the bug or fix is, it is the best I can do at the moment. ;)

If authors do something like is showing in this example:
http://www.w3.org/TR/html5/tabular-data.html#the-caption-element

And if authors do not use aria-labelledby or aria-label to provide a name for the table, the accessible name of the table is to be calculated from the caption element as per this: http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#table-element-accessible-name-calculation

Going back to the example in the HTML5 spec, the resulting accessible name is: &apos;Table 1. This table shows the total score obtained from rolling two six-sided dice. The first row represents the value of the first die, the first column the value of the second die. The total is given in the cell that corresponds to the values of the two dice.&apos;

While we&apos;ve never (as far as I&apos;m aware) specified that names are expected to be short, that is (as far as I&apos;m aware) the understanding most of us in the accessibility community are operating under. Longer, descriptive, detailed information seems more appropriate for the accessible description.

Having said all that, I&apos;m not sure what the right answer is. It might be author guidance pointing out that if they provide descriptive information in the caption, they should also use aria-label or aria-labelled by. It might be tweaking the name calculation heuristic for tables. For instance, the HTML 5 spec example would be solved by using the first child element of the caption as the name (though heuristics are fragile by nature and maybe that would just make things worse). The only thing I know for sure, as a screen reader developer, is that ginormous accessible names are not ideal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119227</commentid>
    <comment_count>1</comment_count>
    <who name="John Foliot">john</who>
    <bug_when>2015-04-03 17:46:31 +0000</bug_when>
    <thetext>&gt; The only thing I know for sure, as a screen reader developer, is that ginormous accessible names are not ideal.

+1 to that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119228</commentid>
    <comment_count>2</comment_count>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2015-04-03 17:55:48 +0000</bug_when>
    <thetext>To clarify something in my opening report:
 
&gt; Having said all that, I&apos;m not sure what the right answer is. It might be
&gt; author guidance pointing out that if they provide descriptive information in
&gt; the caption, they should also use aria-label or aria-labelled by.

What I meant is &quot;use aria-label or aria-labelled by **to provide a short name that does not include the descriptive information**.&quot; Because if authors do that, the name will be short and the caption will wind up in the accessible description (if no other description trumps it in the calculation algorithm).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119235</commentid>
    <comment_count>3</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2015-04-04 09:00:44 +0000</bug_when>
    <thetext>(In reply to Joanmarie Diggs from comment #0)
&gt; Apologies for the vague summary, but since it&apos;s not clear what the bug or
&gt; fix is, it is the best I can do at the moment. ;)
&gt; 
&gt; If authors do something like is showing in this example:
&gt; http://www.w3.org/TR/html5/tabular-data.html#the-caption-element
&gt; 
&gt; And if authors do not use aria-labelledby or aria-label to provide a name
&gt; for the table, the accessible name of the table is to be calculated from the
&gt; caption element as per this:
&gt; http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#table-element-
&gt; accessible-name-calculation
&gt; 
&gt; Going back to the example in the HTML5 spec, the resulting accessible name
&gt; is: &apos;Table 1. This table shows the total score obtained from rolling two
&gt; six-sided dice. The first row represents the value of the first die, the
&gt; first column the value of the second die. The total is given in the cell
&gt; that corresponds to the values of the two dice.&apos;
&gt; 
&gt; While we&apos;ve never (as far as I&apos;m aware) specified that names are expected to
&gt; be short, that is (as far as I&apos;m aware) the understanding most of us in the
&gt; accessibility community are operating under. Longer, descriptive, detailed
&gt; information seems more appropriate for the accessible description.
&gt; 
&gt; Having said all that, I&apos;m not sure what the right answer is. It might be
&gt; author guidance pointing out that if they provide descriptive information in
&gt; the caption, they should also use aria-label or aria-labelled by. It might
&gt; be tweaking the name calculation heuristic for tables. For instance, the
&gt; HTML 5 spec example would be solved by using the first child element of the
&gt; caption as the name (though heuristics are fragile by nature and maybe that
&gt; would just make things worse). The only thing I know for sure, as a screen
&gt; reader developer, is that ginormous accessible names are not ideal.

hi Joanmarie, i agree with you assessment, one option is to improve the advice in html5 spec, which I think needs doing. The history behind how that advice came to be in the spec is not one of collaboration and think we can do better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129199</commentid>
    <comment_count>4</comment_count>
    <who name="James Nurthen">w3cbugzilla</who>
    <bug_when>2018-05-03 21:19:45 +0000</bug_when>
    <thetext>HTML AAM is no longer an ARIA Deliverable. If you wish to pursue this issue please file at https://github.com/w3c/html-aam/issues</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>