<?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>24473</bug_id>
          
          <creation_ts>2014-02-03 00:01:32 +0000</creation_ts>
          <short_desc>Non-link &lt;a&gt; elements should not be an interactive content</short_desc>
          <delta_ts>2014-02-03 14:05:08 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99590</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2014-02-03 00:01:32 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#interactive-content-0

The current specification:
&gt; Interactive content is content that is specifically intended for user interaction.
&gt; a, audio (if the controls attribute is present), button, details, embed, iframe,
&gt; img (if the usemap attribute is present), input (if the type attribute is not
&gt; in the hidden state), keygen, label, object (if the usemap attribute is
&gt; present), select, textarea, video (if the controls attribute is present)

Proposal:
&apos;a,&apos; -&gt; &apos;a (if href attribute is present),&apos;

Reason:
&lt;a&gt; without href attribute is not interactive.

Google Chrome 32 follows the specification and click on interactive elements in &lt;label&gt; doesn&apos;t activate the labeled element. The behavior for &lt;label&gt;&lt;a&gt;...&lt;/a&gt;...&lt;/label&gt; was reported as a bug.  https://code.google.com/p/chromium/issues/detail?id=339629</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99613</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-03 13:55:04 +0000</bug_when>
    <thetext>&quot;Interactive content&quot; in the spec is just about content models, i.e. conformance for authors. It doesn&apos;t say anything about behavior for UAs.

That is, &lt;a&gt;&lt;a&gt;&lt;/a&gt;&lt;/a&gt; is not allowed in the content model.

For UA requirements, the spec says

&quot;The activation behavior of a elements that create hyperlinks is to run the following steps: ...&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-a-element

a without href doesn&apos;t create a hyperlink, so doesn&apos;t have an activation behavior defined, so the &quot;run synthetic click activation steps&quot; do not apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99615</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2014-02-03 14:05:08 +0000</bug_when>
    <thetext>Ah, Simon is right. I overlooked &quot;The activation behavior of a label element for&quot; in [1].


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-label-element
&gt; The activation behavior of a label element for events targeted at interactive content descendants of a label element, and any descendants of those interactive content descendants, must be to do nothing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>