W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: Tidy bug report (vers 13th January 2000)

From: Dave Raggett <dsr@w3.org>
Date: Thu, 30 Mar 2000 15:29:24 +0100 (GMT Daylight Time)
To: Paavo Hartikainen <pahartik@sci.fi>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10003301525430.-629103@hazel.hpl.hp.com>
On Fri, 24 Mar 2000, Paavo Hartikainen wrote:

> Tidy always expands '&' to '&amp;' even if I have
> 'quote-ampersand: no' defined in configuration file. This is not
> a good thing to do for URLs that have '&' characters in them. OS
> is Debian GNU/Linux 2.1 SPARC. Same thing happens on Alpha.
> Other architectures I have not tried.

If you are outputting XHTML then a naked & will always be
mapped to &amp; since a naked & is illegal in XML. If you output
to HTML, then "quote-ampersand: no" will leave a naked & unchanged.
I just tested that it does indeed work that way.

p.s. &amp; in URLs are fine, since the browser expands the
entities before acting on the URL>


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Thursday, 30 March 2000 09:29:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC