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

Re: [whatwg] URL: file: URLs

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 29 Oct 2012 15:53:30 +0100
Message-ID: <CADnb78hS8eLzmwjURkwXAs3jh_qKgTu-7UsObmkfUiQ+A9Wj7Q@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg@lists.whatwg.org
On Mon, Oct 29, 2012 at 3:13 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/29/12 5:00 AM, Anne van Kesteren wrote:
>> Maybe I should introduce a "file host state" that supports colons in
>> the host name (or special case the "host state" further, but the
>> former seems cleaner).
>
> I don't think that's particularly desirable.  The "c:" is totally part of
> the path; treating it otherwise would just be confusing.  Imo.

But at that point in a URL you cannot have a path. A path starts with
a slash after the host. Especially if you want file://test/ to parse
with test being the host.


>> Most browsers seem to fail currently on input
>> such as "file://c:/" but this is on a Mac
>
> Yes, doing that on a Mac would just be wrong....

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


-- 
http://annevankesteren.nl/
Received on Monday, 29 October 2012 14:53:57 GMT

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