Forum Moderators: open

Message Too Old, No Replies

<![CDATA[ //]]>

         

webaster

5:46 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



using HTML 4.01 strict

This is ok too use? yes or no? or need extra comments <!-- -->

<script type="text/javascript">
//<![CDATA[

Your javascript functions ....

//]]>
</script>

tedster

7:27 pm on Mar 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When in doubt, try it out. I just did and it validates and it displays fine on every browser I tried - even NN4

If you are worried about VERY old browsers, like version 2, then you might want to use the comments tags. But I stopped using them years ago, they are not needed as far as I can tell.

webaster

7:38 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



comments fail in NN4.7 not with CDATA