<?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>133608</bug_id>
          
          <creation_ts>2014-06-07 12:12:04 -0700</creation_ts>
          <short_desc>AX: VoiceOver should not announce clickable on all elements inside an element with a click handler</short_desc>
          <delta_ts>2014-06-07 16:07:04 -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>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>133613</dup_id>
          
          <bug_file_loc>http://jsfiddle.net/b2KDZ/1/</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="Dylan Barrell">dylan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jcraig</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013970</commentid>
    <comment_count>0</comment_count>
    <who name="Dylan Barrell">dylan</who>
    <bug_when>2014-06-07 12:12:04 -0700</bug_when>
    <thetext>See the following JSFiddle

http://jsfiddle.net/b2KDZ/1/

The example 2 should not announce clickable on the heading and the paragraph.

The solution would be to suppress this behavior when the region contains naturally focusable elements and elements with appropriate ARIA roles and attributes.

so this:

&lt;div&gt;
&lt;h2&gt;Heading&lt;/h2&gt;
&lt;p&gt;Text&lt;/p&gt;
&lt;span class=&apos;fakebutton&apos;&gt;press&lt;/span&gt;
&lt;/div&gt;

Would announce clickable on everything, whereas these examples would not:

&lt;div&gt;
&lt;h2&gt;Heading&lt;/h2&gt;
&lt;p&gt;Text&lt;/p&gt;
&lt;span class=&apos;fakebutton&apos; role=&quot;button&quot; tabindex=&quot;0&quot;&gt;press&lt;/span&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;h2&gt;Heading&lt;/h2&gt;
&lt;p&gt;Text&lt;/p&gt;
&lt;button&gt;press&lt;/button&gt;
&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013987</commentid>
    <comment_count>1</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2014-06-07 15:41:19 -0700</bug_when>
    <thetext>This report isn&apos;t actionable. Your examples aren&apos;t programmatically distinguishable from the anti-pattern. You&apos;re saying the span in this example shouldn&apos;t be announced as &quot;clickable&quot; even though this is a common problematic case:

&lt;div onclick=&quot;return delegate(event);&quot;&gt;
  &lt;h2&gt;Heading &lt;span&gt;x&lt;/span&gt;&lt;/h2&gt;
  &lt;p&gt;Text&lt;/p&gt;
  &lt;button&gt;press&lt;/button&gt;
&lt;/div&gt;

Our first responsibility is to our users, and the slight increase in verbosity (e.g. &quot;clickable&quot;) when there is some ambiguous code results in a much better experience than the change you&apos;re asking for, which would make many real clickable elements undiscoverable and/or imperceivable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013991</commentid>
    <comment_count>2</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2014-06-07 16:06:37 -0700</bug_when>
    <thetext>Duping out to bug 133613: AX: Heuristic: Avoid exposing an element as clickable if mouse event delegation is handled on an element with any explicit ARIA role, including presentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013992</commentid>
    <comment_count>3</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2014-06-07 16:07:04 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>