W3C home > Mailing lists > Public > public-html-comments@w3.org > March 2010

Re: Starting a script block with <!--

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 21 Mar 2010 22:11:13 +0100
To: "public-html-comments@w3.org" <public-html-comments@w3.org>, "Herman Venter" <hermanv@microsoft.com>
Message-ID: <op.u9xrsuuc64w2qv@annevk-t60>
On Sat, 20 Mar 2010 22:17:23 +0100, Herman Venter <hermanv@microsoft.com>  
wrote:
> I'm working on a prototype HTML5 parser for research purposes and  
> recently bumped into this little bit of markup:
>
> <SCRIPT type=text/javascript><!-- site js --></SCRIPT>
>
> Trawling around the Web it seems that the expectation is that the script  
> engine will ignore a (first?) line starting with <!--.
>
> The EcmaScript standard does not provide for this (at least not the last  
> time I've read through it), so I thought perhaps the issue will be  
> addressed in the new HTML5 standard.

We are hoping the ECMAScript guys will at some point address this. E.g.  
<!-- in an external ECMAScript file has the same effect, so it does not  
make much sense for the HTML5 specification to say something about it.

Meanwhile there is:  
http://wiki.whatwg.org/wiki/Web_ECMAScript#HTML_comments


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Sunday, 21 March 2010 21:11:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:01 GMT