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

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

From: Ian Stuart <ian.stuart@ed.ac.uk>
Date: Thu, 23 Jun 2005 23:18:23 +0100
Message-ID: <42BB352F.3060506@ed.ac.uk>
To: www-validator@w3.org

Hmmm.

Does this imply that IE is doing something specifically because it see's 
the word "transparent", or that firefox is trying to interpret 
"transparent" as an RGB colour, and coming up with a darkish blue?


Frank Ellermann wrote:
> 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
> 
> 
> 

-- 
Ian @ home
Received on Thursday, 23 June 2005 22:18:30 GMT

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