[thelist] (x)html 1.0 validation with javascript
Sarah Sweeney
mr.sanders at designshift.com
Thu Jun 24 10:34:35 CDT 2004
Christopher Mahan wrote:
> A reminder:
>
> when putting a javascript in a xhtml 1.x doc, in the body, use the
> cdata tag and escape it, like this:
>
> <script type="text/javascript">
> // <[CDATA[
> function foo(){
> }
> // ]]>
> </script>
>
> Also note that you need the space after // and before <[CDATA[
> as well as after // and before ]]>
>
> Works in ie, moz, etc
I have never seen this in use. Is it absolutely necessary? Are there
browsers where this will mess up the JavaScript?
--
Sarah Sweeney
Web Developer & Programmer
Portfolio :: http://sarah.designshift.com
Blog, etc :: http://hardedge.ca
More information about the thelist
mailing list