W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: Validator should ignore text inside <script> tags

From: Rui del-Negro <w3validator@dvd-hq.info>
Date: Thu, 26 Apr 2007 20:48:45 +0100
To: "James Rhodes" <hachque@gmail.com>
Cc: www-validator@w3.org
Message-ID: <op.trepbjlzjf0k3w@bigbang>

> 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:01 UTC