W3C home > Mailing lists > Public > www-validator@w3.org > June 2002

schemes and relative URLs

From: Ray Butterworth <rbutterworth@math.uwaterloo.ca>
Date: Wed, 19 Jun 2002 10:18:49 -0400 (EDT)
Message-Id: <200206191418.KAA04213@mfcf.math.uwaterloo.ca>
To: www-validator@w3.org




According to section 3 of RFC 2396,
an absolute URI must begin with "<scheme>:"
and a relative URI must not.

It also says that the authority part of a URI must be preceded by "//".

So that would mean that something like:

    href="http:foo.html"

is not legal, though I believe some browsers treat "foo.html"
as a relative reference (as the author likely intended)
and some as a site name.

Assuming my interpretation above is correct,
the question is, can your "http://validator.w3.org/check?uri="
service be taught to notice such invalid URIs and report them?
Received on Wednesday, 19 June 2002 11:05:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT