- From: <bugzilla@wiggum.w3.org>
- Date: Sat, 22 Oct 2005 17:22:28 +0000
- To: www-validator-cvs@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2412 Summary: Color attributes not validated? Product: Validator Version: 0.7.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: Parser AssignedTo: link@pobox.com ReportedBy: webmaster@cyberdogtech.com QAContact: www-validator-cvs@w3.org This issue was brought to my attention earlier today: the validator does not seem to do any integrity checking on attributes that specify color. As a very simple example, consider the tag: <body bgcolor="#CC0000"> This is perfectly normal and validates fine. Now consider: <body bgcolor="#CC00"> This is apparently invalid. In fact, Mozilla browsers will not accept this tag and will render white. This was brought to my attention when a beginning webmaster asked my why his backgrounds only worked in IE. My first reaction was to tell him to use the validator to check his code. To my dismay I realized that the validator passed the above short tag with flying colors, no pun intended. I'm not sure how the actual HTML specification regards this issue, or how far in depth the validation should go, but I think merely adding a regex to check for the # followed by 6 chars would be a big help.
Received on Saturday, 22 October 2005 17:22:33 UTC