Posted by z on 10/02/06 17:59
David Dorward wrote:
> z wrote:
>> <script type="text/javascript">
>> <!--
>> //-->
>> </script>
>
> Don't do that! Putting an HTML comment inside a <script> element is
> pointless in HTML (nobody uses the browsers it protects any more), and
> harmful in XHTML (where it comments the script itself out).
I guess it is a bit strange to protect old browsers from JavaScript these
days.
[Back to original message]
|