<?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>28413</bug_id>
          
          <creation_ts>2015-04-06 20:20:05 +0000</creation_ts>
          <short_desc>Clarify use of aria-label on elements with no role</short_desc>
          <delta_ts>2018-05-14 16:42:04 +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>Spec</component>
          <version>1.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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="James Craig">jcraig</assigned_to>
          <cc>w3cbugzilla</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119260</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2015-04-06 20:20:05 +0000</bug_when>
    <thetext>Developers are confused about what should happen if you put an aria-label on an element with no role, like an empty &lt;div&gt; element. While most browsers do interpret the aria-label and expose it, some screen readers ignore it. For example:

&lt;div aria-label=&quot;Label&quot;&gt;Text&lt;/div&gt;

Firefox exposes &quot;Label&quot; as the accName, but &quot;Text&quot; as the IAccessibleText, and Windows screen readers read out &quot;Text&quot;. Safari+VoiceOver is different, VoiceOver reads out &quot;Label&quot;.

Do you think the current Windows end-user behavior is correct, or not? Should we clarify the spec to make it crystal-clear that adding aria-label on any random element does not necessarily override that element&apos;s text, or should we change the current behavior?

Note that elements without an ARIA role can still get a label, it depends on computed role, not the ARIA role. As an example:

&lt;h3 aria-label=&quot;ARIA Heading&quot;&gt;Text Heading&lt;/h3&gt;

Every browser and screen reader combination I tested read out &quot;ARIA Heading&quot; here, not &quot;Text Heading&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129241</commentid>
    <comment_count>1</comment_count>
    <who name="James Nurthen">w3cbugzilla</who>
    <bug_when>2018-05-14 16:42:04 +0000</bug_when>
    <thetext>https://github.com/w3c/aria/issues/756</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>