Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Valid XHTML works in IE, but FireFox doesn't honor colors >Thread Next - Re: Valid XHTML works in IE, but FireFox doesn't honor colors Re: Valid XHTML works in IE, but FireFox doesn't honor colorsTo: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
