W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

RE: bug: tidy hould ignore & in hrefs

From: Daniel Biddle <deltab@osian.net>
Date: Fri, 4 Aug 2000 08:05:14 +0000 (UTC)
To: zze-ethop balr102 <ethop.balr102@rd.francetelecom.fr>
cc: html-tidy@w3.org
Message-ID: <Pine.LNX.4.21.0008040744240.23485-100000@charizard.blazingfast.net>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT