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

regards

Received on Thursday, 29 July 1999 13:17:39 UTC