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

Re: Error in validator

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 29 Jul 1999 12:11:56 -0400 (EDT)
Message-ID: <002901bed9dd$0da094a0$c7e0a8c0@de>
To: "Charles Saeger" <rasputin@visi.com>
Cc: <www-validator@w3.org>
| 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.

This is explained in the HTML 4.0 spec. </ in SGML denotes the end
of a CDATA element (script and style) and hence is not allowed
within the contents of a script element.
You have to escape you </ to doc.write('<\/EM');

regards
Received on Thursday, 29 July 1999 13:17:39 GMT

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