Re: CheckColor default

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 UTC