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
Received on Wednesday, 14 November 2007 16:54:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:17 UTC