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

Bjoern Hoehrmann derhoermi at gmx.net
Wed Mar 13 16:58:16 PDT 2013

* Anne van Kesteren wrote:
>On Wed, Mar 13, 2013 at 8:43 PM, Bjoern Hoehrmann <derhoermi at gmx.net> wrote:
>> Turning relative references into absolute ones is a generic operation
>> that works the same for all schemes, as far as RFC 1808 (published in
>> 1995) and its successors are concerned.
>That's in part why I wrote http://url.spec.whatwg.org/ as
>implementations do not do that. E.g. http:test resolves to
>http://test/ if base URL's scheme is not http.

"http:test" is already absolute, so per RFC 3986 the absolute form is
"http:test" regardless of the base reference. The relevant case there
is rather when the base scheme is "http", because then some implemen-
tations treat the string as relative reference, as noted in RFC 3986.

Some browsers end up handling the absolute reference "http:test" as
if it was "http://test/", but that has nothing to do with how you turn
relative references into absolute references.
Björn Höhrmann · mailto:bjoern at hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

More information about the whatwg mailing list