Re: [whatwg] URL: file: URLs

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 UTC