Re: Detection error within javascript/comment

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 UTC