<?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>27047</bug_id>
          
          <creation_ts>2014-10-14 14:33:54 +0000</creation_ts>
          <short_desc>There should be a difference between a having an href attribute and a not having an href attribute. See bug 27022 comment 0.</short_desc>
          <delta_ts>2014-11-26 20:39:13 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#the-a-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>crimsteam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113108</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-10-14 14:33:54 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/semantics.html
Multipage: https://html.spec.whatwg.org/multipage/#the-a-element
Complete: https://html.spec.whatwg.org/#the-a-element
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
There should be a difference between a having an href attribute and a not
having an href attribute. See bug 27022 comment 0.

Posted from: 46.127.136.57 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113149</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-10-14 21:28:17 +0000</bug_when>
    <thetext>I don&apos;t understand. There already is a difference; one has a hyperlink and the other not. What difference do you want?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113169</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-10-15 07:14:23 +0000</bug_when>
    <thetext>As the linked comment says, the situation is that HTML invokes &quot;set the input&quot; whenever href changes, even removed, with the empty string argument. However, the empty string is sufficient to get a URL and &lt;a&gt;.href should not return a URL if href=&quot;&quot; is missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113234</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-10-15 18:32:15 +0000</bug_when>
    <thetext>So what do I set the input to then, when the attribute is missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113286</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-10-16 09:53:41 +0000</bug_when>
    <thetext>I guess I&apos;ll make null work as a special value that does the right thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113299</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-10-16 12:03:14 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/ac1df219c1d5b9381eca43ec432d4103c2505eac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115560</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-11-26 20:39:13 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8858.
Check-in comment: removing an href=&apos;&apos; attribute affects URLUtils differently than setting it to &apos;&apos;.
https://html5.org/tools/web-apps-tracker?from=8857&amp;to=8858</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>