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

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

From: Helder Magalhães <helder.magalhaes@gmail.com>
Date: Mon, 31 Aug 2009 11:06:48 +0100
Message-ID: <2a1ddf8a0908310306i310bc800u7b7bbfae43b1d26b@mail.gmail.com>
To: Dominique Meeùs <dominique@d-meeus.be>
Cc: www-amaya <www-amaya@w3.org>
Hi Dominique,


>  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=).

The problem here isn't the "d" of "id" but it's the fact that you
haven't escaped the "&" character in the URL, reason why Amaya (and
probably other browsers/HTML parsers also) is complaining: it's trying
to parse "id" as an HTML/XML entity [1]. Replacing "&" by "&amp;" will
probably "fix" it (note that I haven't tried to reproduce this
behavior). ;-)


Hope this helps,
 Helder


[1] http://www.w3schools.com/HTML/html_entities.asp
Received on Monday, 31 August 2009 10:07:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 31 August 2009 10:07:27 GMT