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

[VE][79] Error Message Feedback

From: Tim Morgan <morgant@stu.beloit.edu>
Date: Fri, 24 Sep 2004 10:22:49 -0500
To: <www-validator@w3.org>
Message-ID: <BD79A5F9.940%morgant@stu.beloit.edu>

The error message claims that all HTML tags are unclosed when those tags are
actually part of a JavaScript string.  For example, the code snippet:

<script language="JavaScript" type="text/javascript">
if( -1 != navigator.userAgent.indexOf ("MSIE") ) {
document.writeln("<p class=\"footer\"><b>NOTE:</b> You are using Microsoft
Internet Explorer to view this page.</p>");

Will produce the following incorrect errors:

- Tag </b> is closed but never was opened
- Tag </p> is closed but never was opened

Tim Morgan
Received on Friday, 24 September 2004 15:25:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:42 UTC