W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2005

Re: Amaya XHTML chokes on URL ampersand delimiters

From: Irene Vatton <Irene.Vatton@inrialpes.fr>
Date: Mon, 7 Nov 2005 16:53:02 +0200
To: "Steve White" <stevan_white@hotmail.com>
Cc: www-amaya@w3.org
Message-Id: <200511071553.02261.vatton@inrialpes.fr>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:42 GMT