W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

Re: [whatwg] URL: file: URLs

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 29 Oct 2012 11:24:01 -0400
Message-ID: <508E9F91.4090109@mit.edu>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: whatwg@lists.whatwg.org
On 10/29/12 10:53 AM, Anne van Kesteren wrote:
> But at that point in a URL you cannot have a path. A path starts with
> a slash after the host.

The point is that on Windows, Gecko parses file://c:/something as 
file:///c:/something

As in, it's an exception to the general "if there are two slashes after 
the "file:" then the next thing is a host rule.

> I suppose, I would hate it though for new URL(...) to depend on the platform.

I'm not sure there are great solutions here.  :(

-Boris
Received on Monday, 29 October 2012 15:24:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT