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

Re: Detection error within javascript/comment

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 02 Oct 2005 19:11:41 +1000
Message-ID: <433FA44D.1050805@lachy.id.au>
To: Vidiot <brown@mrvideo.vidiot.com>
CC: www-validator@w3.org

Vidiot wrote:
> 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."

http://www.htmlhelp.com/tools/validator/problems.html#script

> Also, the code that it is complaining about is within a comment.

No it isn't, it just looks like it is.
http://lachy.id.au/log/2005/05/script-comments

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Sunday, 2 October 2005 09:11:55 GMT

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