[thelist] XHTML1.1 Validation errors with Javascript

David Dorward evolt at david.us-lot.org
Mon Oct 27 02:18:45 CST 2003


On Mon, Oct 27, 2003 at 10:47:59 +1030, Tim Burgan wrote:
> The way I've included the <![CDATA[ is as follows:
> 
> <head>
>     <script type="text/javascript">
>       <![CDATA[
>       <!--
>         //javascript goes here
>       //-->
>       ]]>
>     </script>
> </head>
> 
> IE says the errors is are on all the lines where the functions are
> called - which isn't very helpful.

The easy work around:

<script type="text/javascript" src="some-external-file.js"></script>

:)

-- 
David Dorward                                       http://dorward.me.uk/


More information about the thelist mailing list