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

Re: schemes and relative URLs

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 13 Jul 2002 00:47:21 +0200
To: "Ray Butterworth" <rbutterworth@math.uwaterloo.ca>
Cc: www-validator@w3.org
Message-ID: <84duiugvj4kp7grb1t24ne4ds7afndtncg@4ax.com>

* Ray Butterworth wrote:
>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.

Please see the last example in RFC 2396, section C.2, this case is
discussed there in detail.

>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?

For the Validator the content model of the href attribute is just
"character data", you may write whatever you want into that value,
the validator does not care about it. This is not likely to change
in the near future, sorry.
Received on Friday, 12 July 2002 18:47:41 GMT

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