<?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>25130</bug_id>
          
          <creation_ts>2014-03-24 04:39:03 +0000</creation_ts>
          <short_desc>spec disallows fragments in both &quot;absolute URL&quot; and &quot;relative URL&quot;</short_desc>
          <delta_ts>2014-05-22 10:27:14 +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>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://url.spec.whatwg.org/#concept-absolute-url</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="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102806</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-03-24 04:39:03 +0000</bug_when>
    <thetext>I suggest rewriting the definition of &quot;absolute URL&quot; in the spec to explicitly state that it can optionally contain a fragment:

— An absolute URL must be a scheme, followed by &quot;:&quot;, followed by either a scheme-relative URL, if scheme is a relative scheme, or scheme data otherwise, optionally followed by &quot;?&quot; and a query, *optionally followed by &quot;#&quot; and a fragment*.

And similarly for &quot;relative URL&quot;.

Then change the definition of &quot;URL&quot; to just:

— A URL must be written as either a relative URL or an absolute URL.

That is, remove from there the part that says &apos;optionally followed by &quot;#&quot; and a fragment&apos; (because it&apos;s moved instead to the definitions of &quot;absolute URL&quot; and &quot;relative URL&quot;.

Rationale: I want to directly reference just the definition of &quot;absolute URL&quot; from the spec, but if I do that now I end up with something that can&apos;t contain a fragment. (So right now I&apos;d have to instead reference the spec by saying something like, &quot;A URL that is an absolute URL.&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102817</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-24 11:34:04 +0000</bug_when>
    <thetext>That would no longer match https://tools.ietf.org/html/rfc3986#section-4.3

Though the current definition for relative URL does not match relative-ref either so maybe it doesn&apos;t matter. Depends a bit on the dependencies...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102822</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-03-24 14:22:28 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; That would no longer match https://tools.ietf.org/html/rfc3986#section-4.3

Ah, OK. I guess there much be some reason for it having been defined that way previously.

&gt; Though the current definition for relative URL does not match relative-ref
&gt; either so maybe it doesn&apos;t matter. Depends a bit on the dependencies...

I guess for &quot;absolute URL&quot; we shouldn&apos;t violate the previous definition unless there&apos;s a good reason to. I can&apos;t say that I personally know of any really compelling reasons to change it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106630</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-22 10:27:14 +0000</bug_when>
    <thetext>I guess once there&apos;s a dependency that shows this is needed we can revisit this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>