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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>78992</bug_id>
          
          <creation_ts>2012-02-19 02:06:19 -0800</creation_ts>
          <short_desc>AXRoleDescription for HTML5 header element is incorrect</short_desc>
          <delta_ts>2013-10-25 11:20:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>0</everconfirmed>
          <reporter name="Steve Faulkner">faulkner.steve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dmazzoni</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>jcraig</cc>
    
    <cc>mkwst</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>559890</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-02-19 02:06:19 -0800</bug_when>
    <thetext>Currently the HTML5 header element has an AXRoleDescription=&quot;banner&quot;. This is the same description as for the ARIA banner landmark role. 
http://dvcs.w3.org/hg/html-api-map/raw-file/tip/Overview.html
It is suggested that this is incorrect as ARIA banner role semantics are not the same as the HTML5 header element. banner can be described as a special case header that conveys the particular semantics:

&quot;A region that contains mostly site-oriented content, rather than page-specific content.
Site-oriented content typically includes things such as the logo or identity of the site sponsor, and site-specific search tool. A banner usually appears at the top of the page and typically spans the full width.
Within any document or application, the author SHOULD mark no more than one element with the banner role.&quot;
http://www.w3.org/TR/wai-aria/roles#banner

the header element has more generic semantics and does not have the same constraints as the banner role. So many headers may be included within a single document

&quot;The header element represents a group of introductory or navigational aids.&quot;
http://dev.w3.org/html5/spec/the-header-element.html#the-header-element

Suggest changing to AXRoleDescription=&quot;header&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647267</commentid>
    <comment_count>1</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2012-06-12 13:51:44 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Currently the HTML5 header element has an AXRoleDescription=&quot;banner&quot;. This is the same description as for the ARIA banner landmark role. 

The current behavior for the `header` element is slightly more complex: if the `header` element is not contained within an `article` or `section` element, it has a description of &quot;banner&quot;. If it is contained in one of those elements, it falls back to &quot;group&quot;.

Regardless of what we do with this bug, we should test that behavior. Same goes for the `footer` element. I&apos;ll throw a patch up under https://bugs.webkit.org/show_bug.cgi?id=88911 

&gt; Suggest changing to AXRoleDescription=&quot;header&quot;

&quot;header&quot; or &quot;heading&quot;? The latter would be trivial, the former wouldn&apos;t be much more work.

Dominic, what do you think about this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647289</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-06-12 14:04:20 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; Currently the HTML5 header element has an AXRoleDescription=&quot;banner&quot;. This is the same description as for the ARIA banner landmark role. 
&gt; 
&gt; The current behavior for the `header` element is slightly more complex: if the `header` element is not contained within an `article` or `section` element, it has a description of &quot;banner&quot;. If it is contained in one of those elements, it falls back to &quot;group&quot;.
&gt; 
&gt; Regardless of what we do with this bug, we should test that behavior. Same goes for the `footer` element. I&apos;ll throw a patch up under https://bugs.webkit.org/show_bug.cgi?id=88911 
&gt; 
&gt; &gt; Suggest changing to AXRoleDescription=&quot;header&quot;
&gt; 
&gt; &quot;header&quot; or &quot;heading&quot;? The latter would be trivial, the former wouldn&apos;t be much more work.
&gt; 
&gt; Dominic, what do you think about this?

Hi Mike, 

&gt; The current behavior for the `header` element is slightly more complex: if &gt;the `header` element is not contained within an `article` or `section` &gt;element, it has a description of &quot;banner&quot;. If it is contained in one of &gt;those elements, it falls back to &quot;group&quot;.

If this is the case then I think its fine as is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647311</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-06-12 14:12:43 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; Currently the HTML5 header element has an AXRoleDescription=&quot;banner&quot;. This is the same description as for the ARIA banner landmark role. 
&gt; 
&gt; The current behavior for the `header` element is slightly more complex: if the `header` element is not contained within an `article` or `section` element, it has a description of &quot;banner&quot;. If it is contained in one of those elements, it falls back to &quot;group&quot;.
&gt; 
&gt; Regardless of what we do with this bug, we should test that behavior. Same goes for the `footer` element. I&apos;ll throw a patch up under https://bugs.webkit.org/show_bug.cgi?id=88911 
&gt; 
&gt; &gt; Suggest changing to AXRoleDescription=&quot;header&quot;
&gt; 
&gt; &quot;header&quot; or &quot;heading&quot;? The latter would be trivial, the former wouldn&apos;t be much more work.
&gt; 
&gt; Dominic, what do you think about this?

tested with this https://dl.dropbox.com/u/377471/tests/header-role.html

works as you described
header not in artcile or section = banner
header in article/section = group</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647321</commentid>
    <comment_count>4</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2012-06-12 14:18:43 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; tested with this https://dl.dropbox.com/u/377471/tests/header-role.html
&gt; 
&gt; works as you described
&gt; header not in artcile or section = banner
&gt; header in article/section = group

Cool. If you&apos;re happy with that behavior, I&apos;ll close this bug. I&apos;ve uploaded some tests to https://bugs.webkit.org/show_bug.cgi?id=88911 to ensure that this behavior doesn&apos;t change accidentally in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647323</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-06-12 14:20:33 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; tested with this https://dl.dropbox.com/u/377471/tests/header-role.html
&gt; &gt; 
&gt; &gt; works as you described
&gt; &gt; header not in artcile or section = banner
&gt; &gt; header in article/section = group
&gt; 
&gt; Cool. If you&apos;re happy with that behavior, I&apos;ll close this bug. I&apos;ve uploaded some tests to https://bugs.webkit.org/show_bug.cgi?id=88911 to ensure that this behavior doesn&apos;t change accidentally in the future.

I&apos;m cool with it, also tested footer works the same, nice one!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943672</commentid>
    <comment_count>6</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-10-25 11:20:29 -0700</bug_when>
    <thetext>Related to bug 109013.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>