<?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>10905</bug_id>
          
          <creation_ts>2010-09-30 21:38:24 +0000</creation_ts>
          <short_desc>clarify how assigning an accesskey to an element affects the elements default role</short_desc>
          <delta_ts>2016-02-23 15:52:24 +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 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23616</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf, aria</keywords>
          <priority>P1</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10888</dependson>
    
    <dependson>23613</dependson>
          <blocked>10066</blocked>
    
    <blocked>23611</blocked>
    
    <blocked>23616</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="Charles McCathieNevile">chaals</assigned_to>
          <cc>ian</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mark.sadecki+w3c</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>schwer</cc>
    
    <cc>w3c</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>40309</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-09-30 21:38:24 +0000</bug_when>
    <thetext>in the editor states &quot;for example any element with accesskey=&quot;&quot; can end up having a role.&quot;
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10603

yet it is not specified in the spec (that I can find) how the adding of an accesskey to &quot;any element&quot; affects  its role 

for example how is the role of the following affected by the presence of an accesskey?

&lt;h1 accesskey=&quot;a&quot;&gt;poot&lt;/h1&gt;

or

&lt;p accesskey=&quot;a&quot;&gt;pooter&lt;/a&gt;

or 

&lt;td accesskey=&quot;a&quot;&gt;pootsville&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40948</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-11 22:39:23 +0000</bug_when>
    <thetext>All three turn into role=menuitem.

What is the request here? It&apos;s not clear to me what change is being requested or what problem needs solving.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41006</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-10-12 08:26:11 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; All three turn into role=menuitem.
&gt; What is the request here? It&apos;s not clear to me what change is being requested
&gt; or what problem needs solving.

apologies for being unclear, the problem is that it is not clear to me what effect adding an accesskey attribute has on the default role of an element. Please add a clarification to the ARIA section of the spec stating that the default role of any element which has an accesskey attribute is overidden by role=&quot;menuitem&quot; if this is the case.

so what is the role of

&lt;h1 accesskey=&quot;a&quot; role=button&quot;&gt; hello &lt;/h1&gt;

please add clarification in the spec for cases such as the above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41103</commentid>
    <comment_count>3</comment_count>
    <who name="Rich Schwerdtfeger">schwer</who>
    <bug_when>2010-10-12 13:32:01 +0000</bug_when>
    <thetext>All the access key does is give an element focus unless it is a link and it would follow it. So, I am not following Ian&apos;s line of thought.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41318</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 08:47:18 +0000</bug_when>
    <thetext>Setting the &quot;accesskey&quot; attribute results in the element having an &quot;assigned access key&quot;.
 - http://c.whatwg.org/m#the-accesskey-attribute
 - http://c.whatwg.org/m##assigned-access-key

An element that has an assigned access key defines a command.
 - http://c.whatwg.org/m#using-the-accesskey-attribute-to-define-a-command-on-other-elements

An element that defines a command, whose Type facet is &quot;command&quot;, and that is a descendant of a menu element whose type attribute in the list state has strong native semantics and implied ARIA semantics giving it a menuitem role.
 - http://c.whatwg.org/m#annotations-for-assistive-technology-products-(aria)

So, if you have a page like this:

   &lt;!DOCTYPE HTML&gt;
   &lt;title&gt;Demo&lt;/title&gt;
   &lt;menu&gt;
      &lt;h1 accesskey=&quot;a&quot;&gt;Demo&lt;/h1&gt;
   &lt;/menu&gt;

...then the &lt;h1&gt; element will have the role &quot;menuitem&quot;.

This seems pretty clear in the spec, and is a rather obscure edge case (and one that, at least for &lt;h1&gt;, is pretty useless and not especially interesting to authors), so I don&apos;t really see why an example would help here.

Could you clarify whether you really want an example for this? It&apos;s not clear to me how authors would benefit from one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41322</commentid>
    <comment_count>5</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-10-14 08:57:06 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Setting the &quot;accesskey&quot; attribute results in the element having an &quot;assigned
&gt; access key&quot;.
&gt;  - http://c.whatwg.org/m#the-accesskey-attribute
&gt;  - http://c.whatwg.org/m##assigned-access-key
&gt; 
&gt; An element that has an assigned access key defines a command.
&gt;  -
&gt; http://c.whatwg.org/m#using-the-accesskey-attribute-to-define-a-command-on-other-elements
&gt; 
&gt; An element that defines a command, whose Type facet is &quot;command&quot;, and that is a
&gt; descendant of a menu element whose type attribute in the list state has strong
&gt; native semantics and implied ARIA semantics giving it a menuitem role.
&gt;  - http://c.whatwg.org/m#annotations-for-assistive-technology-products-(aria)
&gt; 
&gt; So, if you have a page like this:
&gt; 
&gt;    &lt;!DOCTYPE HTML&gt;
&gt;    &lt;title&gt;Demo&lt;/title&gt;
&gt;    &lt;menu&gt;
&gt;       &lt;h1 accesskey=&quot;a&quot;&gt;Demo&lt;/h1&gt;
&gt;    &lt;/menu&gt;
&gt; 
&gt; ...then the &lt;h1&gt; element will have the role &quot;menuitem&quot;.
&gt; 
&gt; This seems pretty clear in the spec, and is a rather obscure edge case (and one
&gt; that, at least for &lt;h1&gt;, is pretty useless and not especially interesting to
&gt; authors), so I don&apos;t really see why an example would help here.
&gt; 
&gt; Could you clarify whether you really want an example for this? It&apos;s not clear
&gt; to me how authors would benefit from one.

So when its not inside a menu

 &lt;!DOCTYPE HTML&gt;
&gt;    &lt;title&gt;Demo&lt;/title&gt;
&gt;       &lt;h1 accesskey=&quot;a&quot;&gt;Demo&lt;/h1&gt;


the role is?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41325</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 09:14:00 +0000</bug_when>
    <thetext>&quot;heading&quot;, with some aria-level value.

Can I close this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41397</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-15 00:20:34 +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: Did Not Understand Request
Change Description: no spec change
Rationale: This bug does not seem to request a change to the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41763</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Kliehm">w3c</who>
    <bug_when>2010-10-26 15:44:19 +0000</bug_when>
    <thetext>Bug triage sub-team assigning to Gregory to track with keyboard access issues. Dependency on 10888 is is the keyboard access requirements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95237</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Sadecki">mark.sadecki+w3c</who>
    <bug_when>2013-10-23 20:08:39 +0000</bug_when>
    <thetext>a11ytf decision to move to HTML.next:
http://www.w3.org/2013/10/17-html-a11y-minutes.html#item04

New bug:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23616</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125231</commentid>
    <comment_count>10</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2016-02-23 15:52:24 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 23616 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>