Re: Colons in URIs rel_path are not warned about
From: Hugo Haas (hugo@w3.org)
Date: Thu, Mar 02 2000
Date: Thu, 2 Mar 2000 14:10:00 -0500
From: Hugo Haas <hugo@w3.org>
To: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Cc: www-validator@w3.org
Message-ID: <20000302141000.D13700@w3.org>
Subject: Re: Colons in URIs rel_path are not warned about
On Thu, Mar 02, 2000, Gerald Pfeifer wrote:
> I just noticed that you don't warn about the colon in
>
> <IMG SRC="g:claudia-small.jpg" ALT="A picture of me">
> ^^^
>
> According to my reading of RFC 2396 the colon is illegal here, yet the
> validator does not warn about it.
Excerpt from Appendix A of the RFC:
URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
[..]
absoluteURI = scheme ":" ( hier_part | opaque_part )
[..]
opaque_part = uric_no_slash *uric
So it seems to me that "g:claudia-small.jpg" is a well-formed URI and
the validator shouldn't complain. Whether "g:claudia-small.jpg" is
another story. The link checker will complain about it.
On a side note, I don't think that the validator checks the validity of
a URI.
--
Hugo Haas, Webmaster, Systems Team
World Wide Web Consortium mailto:hugo@w3.org
Massachusetts Institute of Technology tel:+1-617-452-2092