<?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>28212</bug_id>
          
          <creation_ts>2015-03-13 22:18:37 +0000</creation_ts>
          <short_desc>Making an element with tabindex attribute to be an interactive content breaks backward compatibility</short_desc>
          <delta_ts>2015-06-19 15:01:29 +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>INVALID</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/multipage/dom.html#interactive-content-2</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11ytf, a11y_focus</keywords>
          <priority>P0</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tooru Fujisawa">arai.unmht</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>chaals</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>118595</commentid>
    <comment_count>0</comment_count>
      <attachid>1584</attachid>
    <who name="Tooru Fujisawa">arai.unmht</who>
    <bug_when>2015-03-13 22:18:37 +0000</bug_when>
    <thetext>Created attachment 1584
demo for tabindex, label, and input

Originally reported here:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1141455
  https://bugzilla.mozilla.org/show_bug.cgi?id=1135374

In the attached demo (copied from http://jsbin.com/budisehuyo/3/ ), what the spec says is that clicking on the span element should not turn on/off the checkbox, right?

https://html.spec.whatwg.org/multipage/forms.html#the-label-element:the-label-element-10
&gt; The activation behaviour of a label element for events targeted at interactive
&gt; content descendants of a label element, and any descendants of those
&gt; interactive content descendants, must be to do nothing.

https://html.spec.whatwg.org/multipage/dom.html#interactive-content-2
&gt; Interactive content is content that is specifically intended for user
&gt; interaction.
&gt; The tabindex attribute can also make any element into interactive content.

Now it&apos;s implemented in Firefox Developers Edition 38.0a2 (2015-03-13) and Firefox Nightly 39.0a1 (2015-03-13).  But the behavior is different from previous versions and other browsers, and it causes compatibility problem in capitainetrain.com (see https://bugzilla.mozilla.org/show_bug.cgi?id=1135374 ).

Could we remove &quot;The tabindex attribute can also make any element into interactive content.&quot; from 3.2.4.2.7, or add some restriction to make it backward compatible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118596</commentid>
    <comment_count>1</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-03-14 00:24:47 +0000</bug_when>
    <thetext>Also added to where I am tracking tabindex stuff as part of fixing focus navigation / activation shortcuts, etc. https://www.w3.org/WAI/PF/HTML/wiki/Tabindex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121036</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-16 10:11:11 +0000</bug_when>
    <thetext>Agree that it would be good to have a spec change here, and raising priority after reviewing implementer feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121235</commentid>
    <comment_count>3</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-06-19 15:00:25 +0000</bug_when>
    <thetext>The spec makes sense, and capitainetrain.com shouldn&apos;t have nested interactive elements.

What they have done is analagous to having

&lt;label&gt;
  &lt;a href=&quot;#&quot;&gt;you can&apos;t do
    &lt;a href=&quot;http://w3cmemes.tumblr.com&quot;&gt;THIS&lt;/a&gt;
  without expecting problems.
  &lt;/a&gt;
&lt;/label&gt;

I propose closing this as invalid</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121236</commentid>
    <comment_count>4</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-06-19 15:01:29 +0000</bug_when>
    <thetext>The tabindex should be applied to the label, or the input, which are already interactive elements.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1584</attachid>
            <date>2015-03-13 22:18:37 +0000</date>
            <delta_ts>2015-03-13 22:18:37 +0000</delta_ts>
            <desc>demo for tabindex, label, and input</desc>
            <filename>demo.html</filename>
            <type>text/html</type>
            <size>708</size>
            <attacher name="Tooru Fujisawa">arai.unmht</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAg
PHRpdGxlPkpTIEJpbjwvdGl0bGU+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CmxhYmVsIHsKICBi
YWNrZ3JvdW5kOiByZ2JhKDAsIDAsIDI1NSwgMC4yKTsKICBib3JkZXI6IDFweCBzb2xpZCBibHVl
Owp9Ci5jaGVja2JveC1jb250YWluZXIgewogIGJhY2tncm91bmQ6IHJnYmEoMCwgMCwgMjU1LCAw
LjQpOwogIHBhZGRpbmctbGVmdDogMjBweDsKICBwYWRkaW5nLXJpZ2h0OiAyMHB4Owp9Cjwvc3R5
bGU+CjwvaGVhZD4KPGJvZHk+CiAgPHA+VGFiaW5kZXggY2F1c2VzIGlucHV0IHRvIG1pc3MgY2xp
Y2sgZXZlbnRzLjwvcD4KICA8dWw+CiAgICA8bGk+QSBjbGljayBvbiB0aGUgY2hlY2tib3ggc2Vs
ZWN0IHRoZSBjaGVja2JveDwvbGk+CiAgICA8bGk+QSBjbGljayBvbiB0aGUgbGlnaHQtYmx1ZSBs
YWJlbCBzZWxlY3RzIHRoZSBjaGVja2JveDwvbGk+CiAgICA8bGk+QSBjbGljayBvbiB0aGUgZGFy
ay1ibHVlIGFyZWEgZG9lc24ndCBzZWxlY3QgdGhlIGNoZWNrYm94LjwvbGk+CiAgPC91bD4KICA8
bGFiZWw+CiAgICA8c3BhbiBjbGFzcz0iY2hlY2tib3gtY29udGFpbmVyIiB0YWJpbmRleD0iMSI+
CiAgICAgIDxpbnB1dCB0eXBlPSJjaGVja2JveCIvPgogICAgPC9zcGFuPgogICAgTGFiZWwKICA8
L2xhYmVsPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>