Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Valid XHTML works in IE, but FireFox doesn't honor colors

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 10/5/2005 11:05:00 PM
Richard Lionheart wrote:

> Ken and Bjoern,
> 
> Thanks for spotting the problem and posting your observations.
> 
> Ken:  I just downloaded HTML Tidy GUI ver. 101.5 based on Raggett's 4 Aug
> 2000 version.  I ran it on WinXP-Pro/SP2.  It reported no errors are
> warnings.

The condition of hex color specs having to start with a hash mark
is not enforceable in XML with a DTD. The data type of the bgcolor
attribute is CDATA, which effectively means "any text", so a value 
of bgcolor="foobar" is valid XHTML, as is bgcolor="green". The #
mark is merely a convention to herald a hex value and can only be
enforced after validation by an application (or possibly a Schema).

I guess you could write an RE that would check it, although a quick
grep of /usr/share/dict/words shows the following dictionary entries
are also valid colors :-)

accede afaced bacaba baccae baffed beaded bedaff bedded bedead bedeaf 
beebee beefed cabbed cadded dabbed daffed decade decede deeded deface 
defade efface facade feeded

Quite pretty, in fact (http://xml.silmaril.ie/colours.html :-)

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent