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

Re: [whatwg] URL: file: URLs

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 31 Oct 2012 10:36:23 -0400
Message-ID: <50913767.6030708@mit.edu>
To: whatwg@lists.whatwg.org
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 GMT

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