W3C home > Mailing lists > Public > www-validator@w3.org > October 2005

Detection error within javascript/comment

From: Vidiot <brown@mrvideo.vidiot.com>
Date: Sat, 1 Oct 2005 15:04:50 -0500 (CDT)
Message-Id: <200510012004.j91K4pe03605@mrvideo.vidiot.com>
To: www-validator@w3.org

Web page involved: http://vidiot.com/24/index.html
Error received:
    Error Line 288 column 67: end tag for element "STRONG" which is not open.
    ...P>You've been here <STRONG>" + Count() + "</STRONG> time(s).");

Complete code segment:
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!-- Begin
    document.write("<P>You've been here <STRONG>" + Count() + "</STRONG> time(s).");
    // End -->
    </SCRIPT>

The validator shouldn't complain about HTML code within javascript code, since
the HTML could be generated "on-the-fly."  Also, the code that it is
complaining about is within a comment.

MB
-- 
e-mail: vidiot@vidiot.com                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email
Received on Sunday, 2 October 2005 03:36:11 GMT

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