Re: Validator should ignore text inside <script> tags

> The validator is attempting to validate text inside the <script> tags,
> which will obviously produce errors.

If the text is in an (X)HTML file, then it has to comply with its rules.  
You can either modify the scripts to be compliant (ex., replace "<" with  
"&lt;", replace "&" with "&amp;", etc.) or (probably simpler) just put the  
scripts in a separate .js file, and call that from your (X)HTML file(s).


Received on Thursday, 26 April 2007 19:52:43 UTC