W3C home > Mailing lists > Public > www-validator@w3.org > March 2000

Re: Colons in URIs rel_path are not warned about

From: Hugo Haas <hugo@w3.org>
Date: Thu, 2 Mar 2000 14:10:00 -0500
To: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Cc: www-validator@w3.org
Message-ID: <20000302141000.D13700@w3.org>
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
Received on Thursday, 2 March 2000 14:10:03 GMT

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