[whatwg] URL: file: URLs

Boris Zbarsky bzbarsky at MIT.EDU
Wed Oct 31 07:36:23 PDT 2012


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



More information about the whatwg mailing list