RE: Unexpected behaviour

I'm w/ Kris on this one.  Tidy probably shouldn't replace & with &
within the text of an href or src attribute.  

I did a test, however, and it appears that the link is not broken by the
replacement.  The browser may substitute the entity w/ the actual character
before submitting the URL.  I just did this quickly, without a functional
URL.  But the URL displayed on the status line of the browser (IE5) appears
correct: file:///C:/temp/search.pl?key1=value1&key2=value2

You can turn off & replacement with the option:
	tidy --quote-ampersand=no ...

take it easy,
Charlie

-----Original Message-----
From: Fred Bone [mailto:Fred.Bone@dial.pipex.com]
Sent: Wednesday, May 16, 2001 11:16 AM
To: html-tidy@w3.org
Cc: VAN BRUWAENE Kris
Subject: Re: Unexpected behaviour


On 16 May 2001, at 10:15, VAN BRUWAENE Kris wrote: 

> When using Tidy to convert from html to xhtml I find that 
> it replaces & within url's with &  This looks somewhat
> unexpected to me.  Is it a bug or is there a reason for it?
> e.g.:
> <a href="search.pl?key1=value1&key2=value2"> becomes
> <a href="search.pl?key1=value1&amp;key2=value2">
> Regards
> Kris Van Bruwaene

Tidy is correcting your html. This is nothing to do with conversion. 

Received on Thursday, 17 May 2001 14:00:42 UTC