W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Re: CheckColor default

From: Doug Kearns <djkea2@mugca.cc.monash.edu.au>
Date: Mon, 5 Nov 2001 00:09:37 +1100
To: html-tidy@w3.org
Message-ID: <20011105000937.A2214@hairbear>
On Sun, Nov 04, 2001 at 01:08:12PM +0100, Bjoern Hoehrmann wrote:
> * Klaus Johannes Rusch wrote:
> >The latest version of tidy automatically replaces hex color values with the 
> >corresponding names. The code looks as if this was supposed to become a 
> >configuration option in the future but is currently hardcoded to yes.
> >
> >I believe the default should be to not replace colors -- "#000000" is just as
> >valid as "black".
> 
> No, the behaivour is intended, Tidy should IMO always transform the case
> of hex digits and replace those 16 colors with their corresponding color
> names.
 
Why enforce this 'personal' preference? 

> >The option probably should allow conversions in both directions, i.e.
> >
> >        ColorAttributes: symbolic|hexadecimal|asis
> 
> I don't see any good reason why one wants Tidy to turn readable color
> names to unreadable color codes.

Well, the obvious example is varying browser support for color names.

Regards,
Doug
Received on Sunday, 4 November 2001 08:06:00 GMT

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