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

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:
<style type="text/css">
/* Class definition for centering tables */
  margin-left:  5em;
  margin-right: 5em;
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:58 UTC