Re: Amaya XHTML chokes on URL ampersand delimiters

On Sunday 06 November 2005 14:43, Steve White wrote:
> In pages to be parsed as XHTML, Amaya fails on URL's containing ampersand
> ("&")
> delimiters.
>
> For example, <a href="http://a.b.org/c?d&e">URL with search string</a>
>
> Amaya complains "not well-formed (invalid token)", after the token
> following the
> first ampersand.
>
> Without the XHTML DOCTYPE, this does not happen.
>
> For a real-life example, see:
> <a
> href="http://www.kindernetz.de/oli/tierlexikon/index.php?tid=115&reiter=ste
>ckbrief"> Eurasian Coot.</>

When the document has the XHTML DOCTYPE it's parsed with an XML parser and the 
document should be well-formed, so you must replace & by &amp;

-- 
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Monday, 7 November 2005 14:54:14 UTC