Re: Validator bug with JavaScript loop code

* Glenn H wrote:
>I get an error saying that the page isn't valid. Basically the only error 
>that comes up is on the following line of JavaScript:
>
>for (var i=0; i<lngNumItems; i++) {
>
>Basically I think what's happening is that the validator thinks 
>"<lngNumItems" is part of a new tag, when of course it's just JavaScript 
>code.
>
>Is there any possibility of getting this fixed up?

<script ...>
/* <![CDATA[ */
...
/* ]]> */
</script>

or external scripts.

Received on Wednesday, 16 April 2003 09:24:42 UTC