<?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>21072</bug_id>
          
          <creation_ts>2013-02-21 15:08:55 +0000</creation_ts>
          <short_desc>Parsing examples</short_desc>
          <delta_ts>2015-08-19 17:09:24 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Marcos Caceres">w3c</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>rubys</cc>
    
    <cc>santi</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83491</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2013-02-21 15:08:55 +0000</bug_when>
    <thetext>in section 5.2 Parsing, the spec is currently lacking in examples. This section is important for specification authors who rely on this algorithm. Would be nice to see what the result of parsing various strings is.

given the string &quot;  ?abc=123#123   &quot;, what comes out the other end of the parsing algorithm?

given the string &quot;?hello=is this ok?&quot;, what comes out the other end of the parsing algorithm?

given the string &quot;?query?#fragment#&quot;, what comes out the other end of the parsing algorithm?

What can cause a URL to be invalid?

Some examples of how to invoke the algorithm from another spec would be nice, as well as when it is appropriate to use each of the optional arguments. Like, when should one use a state override? Should one use one when parsing a relative URL? 

Hope that helps!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106635</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-22 10:38:26 +0000</bug_when>
    <thetext>So the example strings you give would all result in failure. Did you mean to include a base URL?

I agree that we need this. Any thoughts on how to include this neatly given the current flow of the text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114568</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-11-05 21:30:02 +0000</bug_when>
    <thetext>Does http://intertwingly.net/projects/pegurl/liveview.html address this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122674</commentid>
    <comment_count>3</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2015-08-19 17:09:24 +0000</bug_when>
    <thetext>(In reply to Sam Ruby from comment #2)
&gt; Does http://intertwingly.net/projects/pegurl/liveview.html address this
&gt; issue?

Yep.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>