Validator does not properly check comments within <style> tag

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 UTC