[thelist] XHTML1.1 Validation errors with Javascript

Jeff Howden jeff at jeffhowden.com
Mon Oct 27 03:17:40 CST 2003


david,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: David Dorward
> 
> > <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>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

easy work around that can cause other problems:

Making Peace: Legacy Browsers and External Scripts
http://evolt.org/article/thelist/17/9054/

or, more specifically, the issues i've outlined here:
http://evolt.org/article/thelist/17/9054/#comment9127

.jeff

------------------------------------------------------
Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/



More information about the thelist mailing list