W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] URL standard: Query string parsing; host parsing

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 13 Mar 2013 16:14:05 -0400
Message-ID: <5140DE0D.5080404@mit.edu>
To: whatwg@lists.whatwg.org
On 3/13/13 4:02 PM, Julian Reschke wrote:
> On 2013-03-13 18:38, poccil14@gmail.com wrote:
>> jar:http://example.com/jar?x=1!/com/example/Foo.class
>>
>> is parsed in the URI standards as:
>>
>> scheme - jar
>> scheme-specific part - http://example.com/jar?x=1!/com/example/Foo.class
>
> I have no idea what you're talking about, see
> <http://greenbytes.de/tech/webdav/rfc3986.html#rfc.section.3>.
>
> This will parse into:
>
> scheme: jar
> hier-part: http://example.com/jar
> query: x=1!/com/example/Foo.class

I should note that jar: URIs are ... special.

For example, given a base of

   jar:http://example.com/jar?x=1!/com/example/Foo.class

the relative URI "Bar.class" should, as far as I know, resolve to:

   jar:http://example.com/jar?x=1!/com/example/Bar.class

What that means for parsing them, I cannot say...

-Boris
Received on Wednesday, 13 March 2013 20:14:33 GMT

This archive was generated by hypermail 2.3.1 : Wednesday, 13 March 2013 20:14:33 GMT