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

Helder Magalhães <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.