<?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>23347</bug_id>
          
          <creation_ts>2013-09-24 22:32:29 +0000</creation_ts>
          <short_desc>Element.tabIndex default on non-natively-focusable elements should be undefined rather than -1</short_desc>
          <delta_ts>2016-04-22 18:16:36 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11y_focus</keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Craig">jcraig</reporter>
          <assigned_to name="Charles McCathieNevile">chaals</assigned_to>
          <cc>arronei</cc>
    
    <cc>chaals</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>93758</commentid>
    <comment_count>0</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-09-24 22:32:29 +0000</bug_when>
    <thetext>This sentence is not accurate. For example, if you set an explicit tabindex=&quot;-1&quot; on a SPAN element, it is not user-focusable in sequential tab order, but it is user-focusable if clicked with a mouse. As such, there is a difference between Element.tabIndex being equal to -1, and Element.tabIndex being undefined, and the reflected DOM attribute defaults should account for that.


http://www.w3.org/html/wg/drafts/html/master/single-page.html#attr-tabindex

&quot;The tabIndex IDL attribute must reflect the value of the tabindex content attribute. Its default value is 0 for elements that are focusable and −1 for elements that are not focusable.&quot;


Suggested change: (changed &quot;-1&quot; to &quot;undefined&quot;)

&quot;The tabIndex IDL attribute must reflect the value of the tabindex content attribute. Its default value is 0 for elements that are focusable and undefined for elements that are not focusable.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93817</commentid>
    <comment_count>1</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-09-25 17:35:57 +0000</bug_when>
    <thetext>Might also need a change to the data type to support this distinction.

Currently:
&quot;The tabindex attribute, if specified, must have a value that is a valid integer.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120947</commentid>
    <comment_count>2</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-06-12 14:47:22 +0000</bug_when>
    <thetext>This looks like part of the mess that is focus management and keyboard interaction :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125867</commentid>
    <comment_count>3</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2016-04-14 22:28:10 +0000</bug_when>
    <thetext>Moved to Github: https://github.com/w3c/html/issues/199

Note that at least Firefox, Safari and Blink try to do what they are told, but have bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126051</commentid>
    <comment_count>4</comment_count>
    <who name="Arron Eicholz">arronei</who>
    <bug_when>2016-04-22 18:16:36 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Moved, this issue has been moved to the Github https://github.com/w3c/html/issues/199

If this resolution is not satisfactory, please copy the relevant bug details/proposal into the issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>