<?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>12334</bug_id>
          
          <creation_ts>2011-03-18 15:57:03 +0000</creation_ts>
          <short_desc>make &lt;a name&gt; valid again in HTML5</short_desc>
          <delta_ts>2011-12-02 17:54:00 +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>All</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Glazman">daniel.glazman</reporter>
          <assigned_to>contributor</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
    
    <cc>m_a_s_7</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>shelleyp</cc>
    
    <cc>xn--mlform-iua</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>46810</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2011-03-18 15:57:03 +0000</bug_when>
    <thetext>I have detailed in [1] why I think &lt;a name&gt; should be valid again in
html5. I am then suggesting (a) to revert the semantics of &lt;a&gt; to the
html4 semantics: it&apos;s the source of an hyperlink and/or a named
anchor (b) to make &lt;a name&gt; valid again in html5.
I would not mind if a note is added asking web authors to prefer the
id attribute on an another element.

[1] http://lists.w3.org/Archives/Public/public-html/2011Mar/0367.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46819</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-18 17:58:24 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I am then suggesting (a) to revert the semantics of &lt;a&gt; to the
&gt; html4 semantics: it&apos;s the source of an hyperlink and/or a named
&gt; anchor (b) to make &lt;a name&gt; valid again in html5.
&gt; I would not mind if a note is added asking web authors to prefer the
&gt; id attribute on an another element.

ONE: I support the view that the definition of &lt;a&gt; is not optimal. If I remember correctly, it says that an &lt;a&gt; without @href, is &quot;a place were there could have been a link if it had been relevant&quot;.

TWO: But regardless of the definition: inside BlueGriffon, why don&apos;t you just convert &lt;a name=&quot;*&quot;&gt; into &lt;a id=&quot;*&quot;&gt; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46820</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2011-03-18 18:47:13 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; ONE: I support the view that the definition of &lt;a&gt; is not optimal. If I
&gt; remember correctly, it says that an &lt;a&gt; without @href, is &quot;a place were there
&gt; could have been a link if it had been relevant&quot;.

Yes.

&gt; TWO: But regardless of the definition: inside BlueGriffon, why don&apos;t you just
&gt; convert &lt;a name=&quot;*&quot;&gt; into &lt;a id=&quot;*&quot;&gt; ?

Because the spec says that &lt;a&gt; is semantically an hyperlink. Turning an html4
&lt;a name&gt; into a &lt;a id&gt; would make it a named anchor, violating the semantics
defined in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46834</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-19 06:42:09 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt; Because the spec says that &lt;a&gt; is semantically an hyperlink.

It is only &quot;semantically a hyperlink&quot; - &quot;REPRESENTS a hyperlink&quot; - when it contains @href:

   &quot;If the a element has an href attribute, **then**
    it represents a hyperlink (a hypertext anchor).&quot;

There is another thing which &lt;a&gt; always is, however: It is always &apos;interactive content&apos;, even without the @href, see: http://dev.w3.org/html5/spec/content-models.html#interactive-content
But I suppose that you are not after changing *that* detail.

&gt; Turning an html4 &lt;a name&gt; into a &lt;a id&gt; would make it a 
&gt; named anchor, violating the semantics defined in the spec.

QUESTION: 

   Would that solve you concern if the spec stated that an &lt;a id=&quot;&quot;&gt;*&lt;/a&gt;(anchor with the @id attribute) &quot;REPRESENTS a named anchor&quot;?

   (I *do* support such a change.)

 
NOTES to convince the editor (Ian) to make such a specification:

    FIRSTLY:  Spec forbids &apos;target, rel, media, hreflang, and type&apos;
                   unless @href is present. But @id is not forbidden.
SECONDLY: Spec contains one example where it shows how one
                   can use an &lt;a&gt; element WITHOUT any @href. 
                   PROPOSAL: add @id to that example.
   THIRDLY: @name is actually &quot;obsolete but conforming&quot; http://dev.w3.org/html5/spec/obsolete.html#obsolete-but-conforming-features Hence the &quot;old&quot; semantics are actually not clearly unpresent in HTML5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48261</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-06 22:04:56 +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: Accepted
Change Description: no spec change
Rationale: This seems to have been done already. &lt;a name=&quot;...&quot;&gt; raises a warning in conformance checkers, but does not raise an error. This is intended to allow migration from legacy documents to the more consistent usage of id=&quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48266</commentid>
    <comment_count>5</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2011-05-06 22:36:56 +0000</bug_when>
    <thetext>The name attribute is still listed in the HTML5 specification as an obsolete feature. Your resolution is in error. 

Please correct the status of the bug to WONTFIX if you&apos;re not going to make &lt;a name&gt; valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48346</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2011-05-09 06:01:59 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; The name attribute is still listed in the HTML5 specification as an obsolete
&gt; feature. Your resolution is in error. 
&gt; 
&gt; Please correct the status of the bug to WONTFIX if you&apos;re not going to make &lt;a
&gt; name&gt; valid.

I tend to agree with Shelley here. The presence of that sentence in the prose
induces a confusion about the real status of the name attribute on &lt;a&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48350</commentid>
    <comment_count>7</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-05-09 09:10:42 +0000</bug_when>
    <thetext>Wanted to correct something I said about Amaya not  using a@name. (See message on public-html: http://lists.w3.org/Archives/Public/public-html/2011Mar/0395.html )

It turns  out that, for XHTML 1.0 and HTML4, then Amya does use &lt;a name=&quot;foo&quot; id=&quot;foo&quot;&gt;foo&lt;/a&gt; whenever the author manually selects a piece of *text* and makes it a target. (In contrast, whenever the author selects an entire, pre-existing *element*, then Amaya inserts an @id in that element rather than using a@name.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53966</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:34:55 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60799</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-02 17:54:00 +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: Marking &quot;Rejected&quot; as requested, although the spec basically already says what was requested.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>