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

Re: I'm sure you are sick of ampersand issues as I am

From: olivier Thereaux <ot@w3.org>
Date: Tue, 28 Nov 2006 17:36:59 +0900
Message-Id: <952094B8-13EF-40EA-8251-4ECF8086BA02@w3.org>
Cc: <www-validator@w3.org>
To: <clive.bradley@erisian.co.uk>

Hi Clive,

On Nov 27, 2006, at 09:03 , clive.bradley@tiscali wrote:

> But...
> While validating XHTML 1.0 Transitional//EN
> I have been going round in circles with my links
>     <a href="foo.asp?cat=12&dog=13" .....> failed

Yes, ampersands are the signal for the beginning of entities in HTML,  
so they need to be escaped, everywhere.
(I wrote a bit more info on this just yesterday - see if it helps you  
understand the issues at hand:
http://www.w3.org/mid/33984906-D0DC-4882-959A-1E884DD24CCF@w3.org )

> The inner html between <a ....> and </a> contained "foo &amp; bar"

You mean you had an URI in your href that contained spaces? Spaces  
are usually not allowed in URIs, you will get around to that by uri- 
encoding the spaces as %20.

> are you sure this validator is working properly ?

for that matter at least, yes it is ;). You're just hitting some of  
the annoying parts of HTML and URIs technologies...

Hope this helps.

Received on Tuesday, 28 November 2006 08:37:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:59 UTC