<?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>16018</bug_id>
          
          <creation_ts>2012-02-17 17:36:44 +0000</creation_ts>
          <short_desc>Exclude disabled form controls from specially focusable elements.</short_desc>
          <delta_ts>2012-11-01 23:07:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#focusable</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>hans.hillen</cc>
    
    <cc>ian</cc>
    
    <cc>kennyluck</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64244</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-17 17:36:44 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html
Multipage: http://www.whatwg.org/C#focusable
Complete: http://www.whatwg.org/c#focusable

Comment:
Exclude disabled form controls from specially focusable elements.

Posted from: 114.25.240.243 by kennyluck@csail.mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64245</commentid>
    <comment_count>1</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-02-17 17:46:05 +0000</bug_when>
    <thetext>This paragraph doesn&apos;t exclude disabled form controls that have tabindex specified. In the following test case &quot;onfocus&quot; doesn&apos;t appear in IE9, Firefox 10, Safari 5 and Chromium 18

data:text/html,&lt;!DOCTYPE html&gt;&lt;textarea tabindex=&quot;0&quot; disabled onfocus=&apos;document.write(&quot;onfocus&quot;);&apos;&gt;CLICK&lt;/textarea&gt;&lt;script&gt;document.querySelector(&apos;textarea&apos;).focus()&lt;/script&gt;

(Opera12alpha is a bit special but that has nothing to do with &apos;tabindex&apos;. It fires the &apos;focus&apos; event for disabled form controls when focus() is called, which is not following the spec.)

I think in general this paragraph should exclude all elements :disabled matches. Test case:

data:text/html,&lt;!DOCTYPE html&gt;&lt;fieldset disabled&gt;&lt;textarea tabindex=&quot;0&quot; onfocus=&apos;document.write(&quot;onfocus&quot;);&apos;&gt;CLICK&lt;/textarea&gt;&lt;/fieldset&gt;&lt;script&gt;document.querySelector(&apos;textarea&apos;).focus()&lt;/script&gt;

Firefox follows my expectable but IE9 and WebKit browsers don&apos;t. That&apos;s because they don&apos;t implement &apos;disabled&apos; on &lt;fieldset&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70599</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 16:20:00 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18065 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72960</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-29 03:33:19 +0000</bug_when>
    <thetext>So what I need to do here is factor out the :disabled list into a reusable term &quot;disabled element&quot;, label the current list of what makes something by-default focusable the &quot;suggested focusable elements&quot;, remove all the stuff about &quot;disabled&quot; in the current definition of the &quot;suggested focusable elements&quot;, then in the definition of &quot;focusable&quot; refer to the &quot;suggested focusable elements&quot; instead of the platform conventions, and then add an explicit filter to remove the &quot;disabled elements&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77721</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-11-01 23:07:09 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7498.
Check-in comment: Another attempt at defining tabindex, :disabled, what can be focused, etc.
http://html5.org/tools/web-apps-tracker?from=7497&amp;to=7498</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>