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

Received on Thursday, 2 March 2000 14:10:03 UTC