Forum Moderators: phranque

Message Too Old, No Replies

JavaScripts are no longer commented out

What?

         

mossimo

4:17 am on May 2, 2003 (gmt 0)

10+ Year Member



I understand commenting out JavaScripts is not allowed in "XHTML"
But I have people telling me that they can cause errors in some browsers when used in "HTML" although I have never had this issue.

Anyone?

le_gber

7:21 am on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



can cause errors in some browsers when used in "HTML"

It was for very old browsers that didn't support javascript and use to display it as text in the page ... I think :)

Leo

BjarneDM

6:43 pm on May 2, 2003 (gmt 0)

10+ Year Member



1) commenting out javascript is *necessary* in correctly intrepreted xhtml
2) the html comments wont work as they do in html in xhtml

look here: [devedge.netscape.com...]