Re: [whatwg] URL: file: URLs

On 10/31/12 9:52 AM, Anne van Kesteren wrote:
> I think bz made it pretty clear we need to treat as if you typed
> "file:///c:/foo" (at least on Windows, my preference is all
> platforms). Not sure what the rules are exactly, but I believe they
> are if you have a single ASCII letter followed by ":" or "|".

That's correct for Gecko.  Specifically, what Gecko looks for is a URI 
that matches this regexp, effectively:

   ^file://[a-zA-Z][:|][/\\]?

So "file://z:" and "file://z|/" and "file://z:\" would all be treated as 
having no authority and the path starting with the "z" in Gecko.

Again, I would love info on other UAs.

-Boris

Received on Wednesday, 31 October 2012 14:37:10 UTC