emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should not file urls use file://


From: Mathias Dahl
Subject: Re: Should not file urls use file://
Date: Thu, 01 Mar 2007 17:47:05 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (windows-nt)

"Lennart Borgman (gmail)" <address@hidden> writes:

> `browse-url-file-url' returns an URL that looks like
>
>   file:c:/full/path-to-file.css
>
> at least on w32. Such an URL does not work in for example a
>
>   <link href="..." rel="StyleSheet" />
>
> tag in Firefox in an xhtml file. I would expect this to be a bug in
> Emacs and not in Firefox, but I am not sure.

I agree, this seems like a bug. I have never seen file URLs like that,
and this RFC (http://tools.ietf.org/html/rfc1738) suggests the same:

3.10 FILES


   The file URL scheme is used to designate files accessible on a
   particular host computer. This scheme, unlike most other URL schemes,
   does not designate a resource that is universally accessible over the
   Internet.

   A file URL takes the form:

       file://<host>/<path>

   where <host> is the fully qualified domain name of the system on
   which the <path> is accessible, and <path> is a hierarchical
   directory path of the form <directory>/<directory>/.../<name>.

Firefox gives me URLs like this if I drop a local file into it:

file:///H:/dat/doc/txt/fillme.txt






reply via email to

[Prev in Thread] Current Thread [Next in Thread]