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

RE: eCommerce links-non compatible with Validator.

From: Christian Smith <csmith@barebones.com>
Date: Wed, 22 Mar 2000 13:11:59 -0500
To: www-validator@w3.org
cc: DBraverman@ingprime.com, kevin@audiodesigns.com
Message-ID: <20000322131200-f01010601-56a8fa94@>
On Wednesday, March 22, 2000 at 12:59, DBraverman@ingprime.com (Braverman, David) wrote:

> I thought the problem might have been with the '&' character in the
> parameter strings. To be compatible, the actual link needs to contain
> '&amp;' instead of just '&':
> Good: <a href="http://www.test.com/script.asp?Parm1=ABC&amp;Parm2=DEF">
> Bad: <a href="http://www.test.com/script.asp?Parm1=ABC&Parm2=DEF">
> (Results in 'general entity "Parm2" not defined' etc.)

Yes, David's correct. While the W3C validator doesn't do general url
validation it will catch an unencoded & in a URL.

When I say it doesn't do general url validation I mean it won't tell you
that the value of HREF in

<a href="/cgi-bin/foo.pl?href=http://www.example.com/index.html">

is not a valid URI according to the rfc which covers URI. So, you may want
to run the pages thru a linter or syntax checker which supports this since
you have URIs in your anchors which are not well formed according to the
URI spec (specificly you have / characters being used outside of their
reserved purpose and these need to by URI encoded).

Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!
Received on Wednesday, 22 March 2000 13:12:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:26 UTC