Menu
It seems that </script> in a comment ends the <script>!
[CODE]<script type=’text/javascript’>
var x = 2*glob*3;
// var y = x*x; </script>
var y = x+x;
</script>
or
[CODE]<script type=’text/javascript’>
var x = 2*glob*3;
/*
var y = x*x; </script>
*/
var y = x+x;
</script>
Both scripts are ended before var y = x+x; is evaluated (and it appears logically on the page as it is interpreted as HTML).
It seems that </script>, even commented, ends the script!
Both IE6 and FF2 ends the script in the comment, so that must be the rule, I just find this quite weird?