* Dova Wilson wrote:
>I am getting a number of CSS validation errors that seem to be referring
>to lines in the code where there is JavaScript running. At the moment
>I'm getting 28 errors!
>
>http://www.gwvirginia.gwu.edu/newsite/ (site under development)
>
>Is there a way to tell the Markup Validation Service that this is not
>CSS or HTML? Or does www.validator.w3.org <http://www.validator.w3.org/>
>really check the JavaScript and this is an indication of a problem with
>the code? It scripts do seem to be functioning, so I'm confused.
You have code like
<script ...>
...
for (p=0;p<theimages.length;p++){
...
</script>
In XHTML, you must not use < or & or ]]> literally inside the <script>
element; if you have to use these characters, you should use an external
script, or at least write the code like so:
<script ...>
// <![CDATA[
...
for (p=0;p<theimages.length;p++){
...
// ]]>
</script>
The <![CDATA[...]]> code is called a CDATA section; inside of it, you
can use the special characters < and & without escaping.
--
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/