RE: bug: tidy hould ignore & in hrefs

On Fri, 4 Aug 2000, zze-ethop balr102 wrote:

> About the same problem, JTidy transform this code :
> 
> <a
> href="search.asp?quicksearch=&titre=tintin&auteur=&genre=&editeur=&collectio
> n=&tri=ALPHA&source=NEUF&rang=25"><IMG src="../../img/fleches.gif" width="9"
> height="13" border="0" alt="suivant"></A>
> 
> into :
> 
> <a
> href="search.asp?quicksearch=&amp;titre=tintin&amp;auteur=&amp;genre=&amp;ed
> iteur=&amp;collection=&amp;tri=ALPHA&amp;source=NEUF&rang;=25">
> <img src="../../img/fleches.gif" width="9" height="13" border="0"
> alt="suivant"></a>
> 
> The problem is the end of the HREF : ...NEUF&rang;=25
> 
> That should be : ...NEUF&rang=25

In the unencoded URL; but it should be ...NEUF&amp;rang=25 in the href
attribute value.

> This cause a URL that does not work because NEUF&rang;=25 is converted into
> NEUF?=25
> 
> I suppose the reason why Tidy do this is because &rang is an entity ????

Yes, &rang; represents a right-pointing angle bracket.

| <!ENTITY rang     CDATA "&#9002;" -- right-pointing angle bracket = ket,
|                                      U+232A ISOtech -->
| <!-- rang is NOT the same character as U+003E 'greater than'
|      or U+203A 'single right-pointing angle quotation mark' -->

> Is there a release that correct this problem ? (I have the 13jan2000
> version).

The latest version (8th July) does the same thing.


hope this helps,
-- 
Daniel Biddle <deltab@osian.net>

Received on Friday, 4 August 2000 04:07:20 UTC