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

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 UTC