Chris Morris said:
It'll crash just as well if it was read from a CD, though. Or are you
arguing that people writing HTML files distributed offline don't need
to conform to the same standards as those writing online ones?
But the above does NOT conform because it is WINDOWS specific violating the
whole consept that HTML filez AND URLs be *platform and OS independent*
In fact the spec cited for dear braindead VPenman (RFC 1738) specifically
states:
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>.
For example, a VMS file
DISK$USER:[MY.NOTES]NOTE123456.TXT
might become
<URL:file://vms.host.edu/disk$user/my/notes/note12345.txt>
As a special case, <host> can be the string "localhost" or the empty
string; this is interpreted as `the machine from which the URL is
being interpreted'.
The file URL scheme is unusual in that it does not specify an
Internet protocol or access method for such files; as such, its
utility in network protocols between hosts is limited.
W3C has since thoughtfully provided this layman's explination:
"There is clearly a danger of confusion that a link made to a local file
should be followed by someone on a different system, with unexpected and
possibly harmful results. Therefore, the convention is that even a "file"
URL is provided with a host part. This allows a client on another system
to know that it cannot access the file system, or perhaps to use some other
local mecahnism to access the file."
<
http://www.w3.org/Addressing/URL/4_1_File.html>
----
The problem is that crossing volumes is NOT standarized and treating it
like it was will produce "unexpected and possibly harmful results"
Ergo while file:///C:/CON/CON" will valide on most validators it is
NOT valid per RFC 1738 because C: is NOT a directory it is a VOLUME
and requires <host> for the URL to fuction properly.
The fact that per RFC 1738 the file URL scheme is NOT crossplatform for
absolute URLs can be demonstrated by anyone taking a local file created on
a Mac BEFORE MacOS X and trying to use the thing under MacOS X. Before
MacOS X local urls has this structure file:///volume_name/directory/directory
however under MacOS X (and some other Unix clones) it has the structure
file:///Volumes/volume_name/directory/directory. And unlike Windows
machines which are still learning the A:, B:, C:'s Mac and Unix
directories can have actual names.
So the above violates two aspects of HTML specs: no host (127.0.0.1 in this
case) and it is NOT platform independent. I lambblasted VPenman on this
over optimizing idiocy and to come up with 'I found something that
validates but breaks' you have done the same thing.
Face it guys so far all you have done is demonstrate you have NOT read HTML
specs or if you have you certainly have not understood them. I have done
both which is how I know that all of this so far is smoke and mirrors.