[whatwg] URL: file: URLs

Boris Zbarsky bzbarsky at MIT.EDU
Mon Oct 29 08:24:01 PDT 2012


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



More information about the whatwg mailing list