W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: bgcolor="transparent" - valid or invalid? confused...

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Thu, 23 Jun 2005 23:17:18 +0200
To: www-validator@w3.org
Message-ID: <42BB26DE.2DA3@xyzzy.claranet.de>

Ian Stuart wrote:

> [bgcolor="transparent"]
 
> The validator picks up on a number of errors, all of which I
> can understand, but passes this without comment
 
> The W3 specs define bgcolor as taking an RGB colour code, or
> one of the named colour aliases, and "transparent" is not one
> of them.
 
> Which is correct?

Both, in a way.  The validator uses the DTD as its source for
validation, and <!ENTITY % Color "CDATA"> allows any character
data.  Some details are also noted in the DTD, but only as a
comment for human readers.  The validator is only a program,
it cannot interpret prose in a comment.

Of course "transparent" isn't okay, but the validator cannot
know this based on an <!ENTITY % Color "CDATA">

                       Bye, Frank
Received on Thursday, 23 June 2005 21:19:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT