<?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>26418</bug_id>
          
          <creation_ts>2014-07-23 14:57:04 +0000</creation_ts>
          <short_desc>Default ARIA roles for tables</short_desc>
          <delta_ts>2014-08-03 13:25:50 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Craig Francis">craig</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>109218</commentid>
    <comment_count>0</comment_count>
    <who name="Craig Francis">craig</who>
    <bug_when>2014-07-23 14:57:04 +0000</bug_when>
    <thetext>The HTML5 validator requires ARIA @role attributes when specifying @aria-sort on a table... the roles being &quot;grid&quot;, &quot;row&quot;, &quot;columnheader&quot;, &quot;rowheader&quot; and &quot;gridcell&quot;... which seem to be redundant information.

The issue seems to be that the &quot;default implicit ARIA semantics&quot; does not set these roles for tables:

http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics

I believe this decision may be due to tables being used for layout.

However as websites should now be using CSS, and considering that anyone who isn&apos;t probably has bigger accessibility issues (where role=&quot;presentation&quot; is still available to them), I would personally like to avoid the relatively redundant attributes... e.g.

&lt;table role=&quot;grid&quot;&gt; to &lt;table&gt;
&lt;tr role=&quot;row&quot;&gt; to &lt;tr&gt;
&lt;th scope=&quot;col&quot; role=&quot;columnheader&quot; aria-sort=&quot;ascending&quot;&gt; to &lt;th scope=&quot;col&quot; aria-sort=&quot;ascending&quot;&gt;

In the same way that the following should be possible, and seems to be what most developers use:

&lt;footer role=&quot;contentinfo&quot;&gt; to &lt;footer&gt;.

See the two example tables at:

http://lists.w3.org/Archives/Public/www-validator/2014Jul/0013.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109805</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-08-03 13:25:50 +0000</bug_when>
    <thetext>Hi Craig, 
Looking into this issue i believe the error being reported by the validator was partially incorrect as aria-sort can be used on either a grid or table [1]. However it was not defined in the HTML the spec that th elements with a scope of col/row mapped to columnheader/rowheader. I have updated the spec to reflect that they do[2]. 

what this means for conformance purposes is that 

&lt;th scope=&quot;col&quot; aria-sort...&gt;

&lt;th scope=&quot;row&quot; aria-sort...&gt;

will not require explicit roles to be declared.

I will respond on the validator bug to get this implemented.

[1] http://www.w3.org/TR/wai-aria/states_and_properties#aria-sort

[2] https://github.com/w3c/html/commit/267fcd3748e6c75d8e9e569b6eecf4eec8fb6eed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>