<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2412</bug_id>
          
          <creation_ts>2005-10-22 17:22:28 +0000</creation_ts>
          <short_desc>Color attributes not validated?</short_desc>
          <delta_ts>2005-10-22 17:27:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>0.7.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt LaPlante">bugzilla</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6869</commentid>
    <comment_count>0</comment_count>
    <who name="Matt LaPlante">bugzilla</who>
    <bug_when>2005-10-22 17:22:28 +0000</bug_when>
    <thetext>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:
&lt;body bgcolor=&quot;#CC0000&quot;&gt;

This is perfectly normal and validates fine.  Now consider:

&lt;body bgcolor=&quot;#CC00&quot;&gt;

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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6870</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-10-22 17:27:42 +0000</bug_when>
    <thetext>Yes, the Validator will only check for constraints spelled out in the DTD of 
the relevant format. We are working on solutions to this problem. In the 
meantime you might want to try tools like HTML Tidy or http://schneegans.de/sv/ 
which should be better at complaining about such problems.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>