W3C home > Mailing lists > Public > www-validator@w3.org > July 1999

Error in validator

From: Charles Saeger <rasputin@visi.com>
Date: Thu, 29 Jul 1999 10:07:15 -0400 (EDT)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.10.9907290901400.4550-100000@isis.visi.com>
Hello, I've caught an error in the validator as it relates to JavaScript.

On my title page, I have a counter JavaScript triggered by a cookie.  When
I run the validator, I get this for an error:

Error at line 153:   you have visited this page "+ hitCt + " times?</em>")
                 end tag for element "EM" which is not open

There's a problem, of course.  I did open an <EM> tag earlier in the same

153: 	document.write("<em>Does your mother know that you have visited
this page "+ hitCt + " times?</em>")

I suspect that because I used two separate segments, it caused an error,
though when printed the line is clearly valid HTML:

<em>Does your mother know that you have visited this page 3 times?</em>

Also, the validator didn't give me an error for opening an <em> tag and
not closing it (the above "error" was the only such one on the page), so I
suspect that it completely ignored the first segment.

Charlie Saeger						 rasputin@visi.com
Writer, Cynic, ResEditor			http://www.transdimnav.com
"Careful with that axe, Eugene." -- Pink Floyd
Received on Thursday, 29 July 1999 11:54:48 GMT

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