<?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>11535</bug_id>
          
          <creation_ts>2010-12-11 10:27:56 +0000</creation_ts>
          <short_desc>tabIndex IDL default is −1 for elements that are not focusable, but if the tabindex value is negative integer, the element can still be focused.</short_desc>
          <delta_ts>2011-08-04 05:06:10 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#sequential-focus-navigation-and-the-tabindex-attribute</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>henry.fai.hang.chan</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</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>43271</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-12-11 10:27:56 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#sequential-focus-navigation-and-the-tabindex-attribute

Comment:
tabIndex IDL default is −1 for elements that are not focusable, but if the
tabindex value is negative integer, the element can still be focused. 

Posted from: 203.218.234.217</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43273</commentid>
    <comment_count>1</comment_count>
    <who name="">henry.fai.hang.chan</who>
    <bug_when>2010-12-11 11:38:53 +0000</bug_when>
    <thetext>Statement 1:
&quot;If the [tabindex attribute] value is a negative integer

    The user agent must allow the element to be focused, but should not allow the element to be reached using sequential focus navigation.&quot;

Statement 2:
&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;

contradiction?

it would be better if non-focusable elements had an tabIndex IDL attribute as NULL instead:

NULL: cannot be focused (and cannot be in document.activeElement)
NEGATIVE: can be focused, not in sequence
0: can be focused, append to end of sequence
POSITIVE: can be focused, start of sequence

this better corresponds to the current behavior of Opera and firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43274</commentid>
    <comment_count>2</comment_count>
      <attachid>937</attachid>
    <who name="">henry.fai.hang.chan</who>
    <bug_when>2010-12-11 11:45:50 +0000</bug_when>
    <thetext>Created attachment 937
Testcase of current implementations and reason why the tabindex default for non-focusables should not be -1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43275</commentid>
    <comment_count>3</comment_count>
    <who name="">henry.fai.hang.chan</who>
    <bug_when>2010-12-11 11:48:07 +0000</bug_when>
    <thetext>sorry, forgot to add:
in testcase, click on the top two dives, and an alert will show the document.activeElement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44124</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-11 07:20:45 +0000</bug_when>
    <thetext>The tabindex content attribute and the tabindex IDL attribute are distinct; there&apos;s no contradiction, it just means that if you try to fetch the tabindex IDL attribute when its corresponding content attribute is not set, you don&apos;t get a useful value.

The attached test only tests the content attribute, not the IDL attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45681</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-02-16 09:33:22 +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: Rejected
Change Description: no spec change
Rationale: see comment 4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53034</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:06:10 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>937</attachid>
            <date>2010-12-11 11:45:50 +0000</date>
            <delta_ts>2010-12-11 11:45:50 +0000</delta_ts>
            <desc>Testcase of current implementations and reason why the tabindex default for non-focusables should not be -1</desc>
            <filename>test-html_focus.html</filename>
            <type>text/html</type>
            <size>831</size>
            <attacher>henry.fai.hang.chan</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+DQo8ZGl2IG9uY2xpY2s9ImFsZXJ0KGRvY3VtZW50LmFjdGl2ZUVsZW1l
bnQpIj5ObyB0YWJpbmRleDwvZGl2Pg0KPGRpdiBvbmNsaWNrPSJhbGVydChkb2N1bWVudC5hY3Rp
dmVFbGVtZW50KSIgdGFiaW5kZXg9Ii0xIj5OZWdhdGl2ZSB0YWJpbmRleDwvZGl2Pg0KPGJyPg0K
PGgxPlJlc3VsdHMgb2YgT3BlcmE6PC9oMT4NCk5vIHRhYm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