<?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>27961</bug_id>
          
          <creation_ts>2015-02-04 22:22:14 +0000</creation_ts>
          <short_desc>&lt;footer&gt; should map to the ARIA role contentinfo</short_desc>
          <delta_ts>2015-06-24 04:23:06 +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>1.1</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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Mazzoni">dmazzoni</reporter>
          <assigned_to name="Jason Kiss">jason</assigned_to>
          <cc>aboxhall</cc>
    
    <cc>dmazzoni</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>jason</cc>
    
    <cc>jdiggs</cc>
    
    <cc>surkov.alexander</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117698</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2015-02-04 22:22:14 +0000</bug_when>
    <thetext>Reported by aboxhall@google.com:

&lt;footer&gt; is specced as having no related ARIA role, but exposes xml-roles:contentinfo, strongly suggesting it should be ARIA role contentinfo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117699</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2015-02-04 22:34:55 +0000</bug_when>
    <thetext>(In reply to Dominic Mazzoni from comment #0)
&gt; Reported by aboxhall@google.com:
&gt; 
&gt; &lt;footer&gt; is specced as having no related ARIA role, but exposes
&gt; xml-roles:contentinfo, strongly suggesting it should be ARIA role contentinfo

Unclear what you mean? &apos;xml-roles:contentinfo&apos; is the related ARIA role.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120674</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2015-06-03 05:30:45 +0000</bug_when>
    <thetext>(In reply to steve faulkner from comment #1)
&gt; (In reply to Dominic Mazzoni from comment #0)
&gt; &gt; Reported by aboxhall@google.com:
&gt; &gt; 
&gt; &gt; &lt;footer&gt; is specced as having no related ARIA role, but exposes
&gt; &gt; xml-roles:contentinfo, strongly suggesting it should be ARIA role contentinfo
&gt; 
&gt; Unclear what you mean? &apos;xml-roles:contentinfo&apos; is the related ARIA role.

The mapping for &lt;footer&gt; has &quot;No corresponding role&quot; under WAI-ARIA [1]. I think Dominic and Alice are suggesting it should specify &quot;contentinfo&quot; as the corresponding role. 

The corresponding role for &lt;footer&gt; is &quot;contentinfo&quot; in the case that the &lt;footer&gt; is not a descendant of an &lt;article&gt; or &lt;section&gt; element. However, the api mapping for a &lt;footer&gt; whose nearest ancestor is the &lt;body&gt; element and so whose role is &quot;contentinfo&quot; doesn&apos;t necessarily match the mapping for the &quot;contentinfo&quot; role as expressed in CORE-AAM [2]. At least this is the case with the AXAPI mapping, where the AXRoleDescription for a &lt;footer&gt; that is a &quot;contentinfo&quot; landmark is &quot;footer&quot;, while the default AXRoleDescription for a &quot;contentinfo&quot; landmark is just &quot;content&quot;.

I wonder if we should have two entries for &lt;footer&gt; distinguished by their nearest sectioning ancestor, i.e. &quot;footer (contained by article or section)&quot; and &quot;footer (not contained by article or section)&quot;, and describe the mappings accordingly. In the case of the footer not contained by article or section elements, we could identify &quot;contentinfo&quot; as the corresponding role.

But thinking this through has raised a few other questions for me:

A. The entry for &lt;footer&gt; in the HTML5.1 spec [3] makes &lt;footer&gt; valid in &lt;aside&gt; and &lt;nav&gt; sectioning elements, as well sectioning roots, i.e. &lt;blockquote&gt;, &lt;body&gt;, &lt;details&gt;, &lt;dialog&gt;, &lt;fieldset&gt;, &lt;figure&gt;, and &lt;td&gt;. Surely this is the same scenario as &lt;footer&gt; in &lt;article&gt; or &lt;section&gt;, namely it does not represent an ARIA &quot;contentinfo&quot; landmark, and in which case the a11y mapping needs to make this clear? So now we need to distinguish between &quot;footer (nearest sectioning element ancestor is body)&quot;, in which case it has a &quot;contentinfo&quot; role, and &quot;footer (nearest sectioning element ancestor is not body)&quot; where it has no default ARIA role. I&apos;ll file a separate bug for this.

B. The &lt;header&gt; element [4] and &quot;banner&quot; role [5] are in a similar boat, so whatever approach we take for &lt;footer&gt;, we need to do the same for &lt;header&gt;.

C. The current IA2 and ATK mappings for &lt;footer&gt; is ROLE_FOOTER. For IA2 [6] this makes it &quot;Footer of a document page&quot;, and for ATK [7], &quot;An object that serves as a document footer&quot;. This makes sense if the &lt;footer&gt;&apos;s nearest ancestor is the &lt;body&gt; element in which case it is a footer for the page. But it doesn&apos;t sound right if the nearest ancestor is an &lt;article&gt; or &lt;section&gt; or &lt;blockquote&gt; or &lt;td&gt;, as these are not documents in themselves. I&apos;ll file a separate bug for this.

[1] http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#el-footer
[2] http://w3c.github.io/aria/core-aam/core-aam.html#role-map-contentinfo
[3] http://www.w3.org/TR/html51/semantics.html#the-footer-element
[4] http://www.w3.org/TR/html51/semantics.html#the-header-element
[5] http://w3c.github.io/aria/core-aam/core-aam.html#role-map-banner
[6] http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/_accessible_role_8idl.html#ae37ff81431ee3762a5d41a2cb909108da6e45e9d06ef0d62ebdabaab430f2ae13
[7] https://developer.gnome.org/atk/stable/AtkObject.html#AtkRole</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121024</commentid>
    <comment_count>3</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2015-06-16 03:21:20 +0000</bug_when>
    <thetext>I&apos;ve updated footer [1] and header [2] mappings.

There are now two entries for each: one entry is for the scenario where the element&apos;s nearest ancestor sectioning content or sectioning root element is the body element (in which case it applies to the page as a whole and is a landmark), and one for where it is not. 

The UIA Express and UIA mappings were updated to align more with the CORE-AAM mappings for banner and contentinfo roles.

The IA2 mapping for footer/header when they don&apos;t apply to the page or document, i.e., when they are descendants of some sectioning element other than body, were updated to use the more generic ROLE_SECTION. 

Only when the nearest ancestor sectioning element is body do IA2 and ATK get the more specific ROLE_HEADER and ROLE_FOOTER. (ATK does have ROLE_LANDMARK: would this be the better role in this scenario? I&apos;ve filed a bug with IA2 to also create ROLE_LANDMARK [3].)

[1] http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#el-footer
[2] http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#el-header
[3] https://bugs.linuxfoundation.org/show_bug.cgi?id=1293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121453</commentid>
    <comment_count>4</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2015-06-24 04:23:06 +0000</bug_when>
    <thetext>Closing as I think this has been resolved with https://github.com/w3c/aria/commit/75965533b2b865f9cf94a0b4063fd265d0be0e64

Reopen if any concerns.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>