<?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>9936</bug_id>
          
          <creation_ts>2010-06-16 14:17:47 +0000</creation_ts>
          <short_desc>onclick attributes on any element that is not focusable should trigger a conformance error</short_desc>
          <delta_ts>2010-10-12 12:31: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>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11y_focus</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cooper</cc>
    
    <cc>ian</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</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>36207</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-06-16 14:17:47 +0000</bug_when>
    <thetext>When an onclick attribute is added to any element that cannot receive focus the interaction is not accessible and should trigger a conformance error. it also overloads the default semantic of the element. furthermore a corresponding onkeypress is required to make it operable usable with the keyboard, so suggest conformance advice in this regard.

example: 
&lt;h1 onclick=&quot;copy()&quot;&gt;copy&lt;/h1&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36209</commentid>
    <comment_count>1</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2010-06-16 14:36:47 +0000</bug_when>
    <thetext>No. This ignores the possibility of there being alternative techniques provided within the page that perform an equivalent action.  There is no programmatic way to determine if any given action is inaccessible by the presence of an event handler attribute, and a validator should thus not be used to try and enforce such accessibility guidelines.

Also, authors who cared about validity would simply workaround the error by attaching the event listener another way that is impossible for the validator to detect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36210</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2010-06-16 14:42:11 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; No. This ignores the possibility of there being alternative techniques provided
&gt; within the page that perform an equivalent action.  There is no programmatic
&gt; way to determine if any given action is inaccessible by the presence of an
&gt; event handler attribute, and a validator should thus not be used to try and
&gt; enforce such accessibility guidelines.


Your response does not resolve the issue of onclick overloading the semantics of any given element.

&gt; Also, authors who cared about validity would simply workaround the error by
&gt; attaching the event listener another way that is impossible for the validator
&gt; to detect.

Exactly the same can be said for the use of the role attribute on an element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36214</commentid>
    <comment_count>3</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2010-06-16 16:08:44 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Your response does not resolve the issue of onclick overloading the semantics
&gt; of any given element.

onclick doesn&apos;t overload the semantics of any element. It just adds an event listener to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37489</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-16 21:35:25 +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: I don&apos;t understand. Could you elaborate? What is &quot;conformance advice&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38309</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2010-08-31 13:37:22 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/public-html-a11y/2010Aug/0013.html

The bug triage sub-team thinks the HTML A11Y TF does not need to formally follow this bug. Original submitters or other interested parties may choose to continue to push this issue on their own. Notes from the sub-team may follow in a separate comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38319</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2010-08-31 13:44:35 +0000</bug_when>
    <thetext>Bug triage sub-team says not high enough priority for TF, though Steve may continue to push on it; there&apos;s a wider design issue involved, not useful to require fine-grained warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41097</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2010-10-12 12:31:24 +0000</bug_when>
    <thetext>Closed per http://lists.w3.org/Archives/Public/public-html/2010Oct/0135.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>