Forum Moderators: open

Message Too Old, No Replies

xhtml javascript code

xhtml javascript code

         

webaster

7:00 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



i want to use xhtml valid code but w3c vaidator says my javscript inline
does not validate xhtml strict however

javscript inline;

if(this.contentHeight <= this.contentMaskHeight){

Line 78, column 22: character "<" is the first character of a delimiter but occurred as data

If you wish to include the "<" character in your output, you should escape it as "&lt;". Another possibility is that you forgot to close quotes in a previous tag.

any solutions?

orion_rus

8:05 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



u need to make a comment like this:
<script>
<--

//-->
</script>
and all will be work fine)
good luck to you

webaster

8:31 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



<--

//-->

sortof like the html comments
<!-- your
comments
-->

In xhtml i use then

<script type="text/javascript">
<--
myfunctions here

//-->

</script>

am I lucky?