<?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>151703</bug_id>
          
          <creation_ts>2015-12-01 05:32:04 -0800</creation_ts>
          <short_desc>AX: aside with aria-labelledby ignores role=presentation</short_desc>
          <delta_ts>2015-12-01 10:56:23 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoë Bijl">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1145226</commentid>
    <comment_count>0</comment_count>
      <attachid>266353</attachid>
    <who name="Zoë Bijl">webkit</who>
    <bug_when>2015-12-01 05:32:04 -0800</bug_when>
    <thetext>Created attachment 266353
Code example

When an aside has a role of presentation, its accessibilityRole is AXWebArea. If aria-labelledby is added with a reference to an element the aside&apos;s role is AXGroup.

This causes it to show up in the Web Rotor as “text in referenced element” + “complementary”.

Example in attached file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1145227</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-12-01 05:32:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/23704059&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1145233</commentid>
    <comment_count>2</comment_count>
    <who name="Zoë Bijl">webkit</who>
    <bug_when>2015-12-01 06:13:12 -0800</bug_when>
    <thetext>Takeshi Kurosawa pointed me at http://trac.webkit.org/browser/trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp#L2002.

Seems this is deliberate. Do authors often mistakingly put role=presentation on asides?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1145276</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2015-12-01 10:56:23 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Takeshi Kurosawa pointed me at
&gt; http://trac.webkit.org/browser/trunk/Source/WebCore/accessibility/
&gt; AccessibilityNodeObject.cpp#L2002.
&gt; 
&gt; Seems this is deliberate. Do authors often mistakingly put role=presentation
&gt; on asides?

When role=&quot;presentation&quot; is used, the element &quot;disappears&quot; from the accessibility tree. This is expected behavior for anything with presentation</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>266353</attachid>
            <date>2015-12-01 05:32:04 -0800</date>
            <delta_ts>2015-12-01 05:32:04 -0800</delta_ts>
            <desc>Code example</desc>
            <filename>aside.html</filename>
            <type>text/html</type>
            <size>369</size>
            <attacher name="Zoë Bijl">webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0i
VVRGLTgiPgogIDx0aXRsZT5Bc2lkZSB3aXRoIHByZXNlbnRhdGlvbiByb2xlIGFuZCBsYWJlbGxl
ZGJ5PC90aXRsZT4KICA8c3R5bGU+CiAgICBhc2lkZSB7CiAgICAgIHBhZGRpbmc6IDVweDsKICAg
ICAgZm9udC1mYW1pbHk6IHNhbnMtc2VyaWY7CiAgICAgIGJhY2tncm91bmQ6ICNlZmVmZWY7CiAg
ICB9CiAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KICA8YXNpZGUgYXJpYS1sYWJlbGxlZGJ5PSJs
YWJlbCIgcm9sZT0icHJlc2VudGF0aW9uIj4KICAgIDxoMiBpZD0ibGFiZWwiPkFzaWRlPC9oMj4K
ICA8L2FzaWRlPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>