W3C home > Mailing lists > Public > www-validator@w3.org > February 2009

Validator does not properly check comments within <style> tag

From: andynic <andynic_nl@yahoo.com>
Date: Sun, 22 Feb 2009 06:22:18 -0800 (PST)
Message-ID: <409327.60527.qm@web111304.mail.gq1.yahoo.com>
To: www-validator@w3.org

Hi,
 
I am a newibe at this stuff so please keep that in mind.
 
I am developing a simple HTML script.  In the file, I use the following construct:
 
<head>
<style type="text/css">
 
/* Class definition for centering tables */
table.centerTable
{
  margin-left:  5em;
  margin-right: 5em;
}
...
...
...
</style>
</head>
 
In one of the class definitions I had a comment line like this – note the incorrect closing characters:
/* comment /*
 
This typo played havoc with the script but the validator did not pick it up...  It told me I had no errors.
 
Thought you would want to know.
 
The heading in the script is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
I was using the validator at: http://validator.w3.org/#validate_by_upload
 
Kind Regards,
Andy Nicastro
 
 


      
Received on Monday, 23 February 2009 11:05:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:34 GMT