W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2009

Re: False parsing error inside href="http://..." !

From: Vincent Quint <vincent.quint@inria.fr>
Date: Tue, 01 Sep 2009 17:55:32 +0200
Message-ID: <4A9D43F4.6010703@inria.fr>
To: Dominique Meeùs <dominique@d-meeus.be>
CC: www-amaya <www-amaya@w3.org>
On 31/08/09 11:24, Dominique Meeùs wrote:
> *** Errors/warnings in [MyFile].html
>  line 1969, char 98: not well-formed (invalid token)
> But the line is
>  <em class="ouvrage"><a 
> href="http://studies.d-meeus.be/wikindx3/index.php?action=resourceView&id=401">Dreams 
>
> which is perfectly legitimate (char. 98 is the d of id=). I ask the 
> file index.php to view the resource whose id is 401. I cannot but 
> write id=401. Amaya should not bother with what I write between the " ".
Amaya is right to complain about this un-escaped '&'. In HTML, character 
'&' introduces an entity, which must be closed by a ';'. This applies to 
attribute values too.
I guess you mean "&amp;id=401" instead of "&id=401".
You can check your documents with the W3C validator :

   http://validator.w3.org/

Vincent.
Received on Tuesday, 1 September 2009 15:56:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:57 UTC