W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: [VE][338] Error Message Feedback

From: David Dorward <david@dorward.me.uk>
Date: Wed, 09 Nov 2005 21:38:26 +0000
To: no <nospam2@vajira.co.uk>
Cc: www-validator@w3.org
Message-Id: <1131572307.9019.1.camel@cyberman.dorward.me.uk>

On Wed, 2005-11-09 at 17:25 +0100, no wrote:
>         Entity references start with an ampersand (&) and end with a
>         semicolon (;). If you want to use a literal ampersand in your
>         document you must encode it as "&amp;" (even inside URLs!).
> 
> This is a validation mistake 

No, it is not.

> because the ampersand is part of a ULR for an asp page with more than
> one variable.

In a URL in a plain text document you would write:

  ../cesta/cesta.asp?UC_AddId=CUE&vn_url=../temas/index.asp?tema=nino

... but this is an HTML document and & has special meaning, so you must
encode it in HTML form:

  ../cesta/cesta.asp?UC_AddId=CUE&amp;vn_url=../temas/index.asp?tema=nino

-- 
David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
                             -- The Greatest Show in the Galaxy
Received on Wednesday, 9 November 2005 21:39:30 GMT

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