W3C home > Mailing lists > Public > www-html@w3.org > November 2007

Re: html code in <script>

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 14 Nov 2007 17:54:39 +0100
Message-ID: <473B284F.7060001@lachy.id.au>
To: David Woolley <forums@david-woolley.me.uk>
CC: www-html@w3.org

David Woolley wrote:
> My advise would be to revert to HTML 4.01 and use HTML comments to 
> protect the scripts against earlier browsers.

Where "earlier browsers" refers to obsolete browsers like Netscape and 
IE 2.x.  Basically anything released before the <script> element was 
introduced in HTML 3.2 over a decade ago.

In general, it's a bad idea to teach people to use HTML comments within 
scripts these days because it's completely unnecessary and if and when 
authors try to use XHTML, it's yet another habbit they'll be forced to 
break or otherwise their scripts will be commented out.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 14 November 2007 16:54:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:12 GMT