Re: Error in validator

From: Bjoern Hoehrmann (
Date: Thu, Jul 29 1999

Date: Thu, 29 Jul 1999 12:11:56 -0400 (EDT)
Message-ID: <002901bed9dd$0da094a0$c7e0a8c0@de>
From: "Bjoern Hoehrmann" <>
To: "Charles Saeger" <>
Cc: <>
Subject: Re: Error in validator

| 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');