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

Validator ignores malformed closing comment tag

From: Jerry Peek <jpeek@jpeek.com>
Date: Sun, 20 Sep 2009 16:20:42 -0700
Message-ID: <4AB6B8CA.8030007@jpeek.com>
To: www-validator@w3.org
Hi, all. The page http://tucsonart.info/murals/ie_test.html wouldn't 
display correctly in several versions of Internet Explorer, though 
Validator reported "This document was successfully checked as HTML 4.01 
Transitional!" (http://validator.w3.org/, version v0.8.5, as of today, 
20 September 2009).

I eventually found an invalid closing comment tag inside the <style> 
block in the <head> section. Instead of --> the tag was ->> (with two 
greater-than signs).  Here are the start and end of that block:

<style type="text/css">
<!--
  body {
.....omitted...
  }
->>
</style>

The fixed document, http://tucsonart.info/murals/index.html, displays 
correctly in IE (of course).  I'm not sure if this qualifies as 
something that Validator should complain about, but I thought I'd report 
it. (By the way, Firefox 3.5 ignored the error and displayed the page.)

Jerry Peek
jpeek@jpeek.com

P.S. I'm not subscribed to this list.
Received on Monday, 21 September 2009 07:03:43 GMT

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