W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] When should a script be parsed

From: Keryx Web <webmaster@keryx.se>
Date: Thu, 30 Oct 2008 17:10:40 +0100
Message-ID: <4909DC80.7050702@keryx.se>
Hi

I am in the process of setting up a test page (informal), from which I 
intend to make real tests and submit bug reports to Webkit, Mozilla, 
Opera, etc.

http://keryx.se/dev/javascript/javascript-parsing-test.html

It is not finished yet. It does nut run at all in MSIE...

But a few things are noticeable:

Webkit based browsers happily tries to parse scripts after the following 
tags:

  <script language=javascript1.6">
  <script language=javascript1.7">

Even though neither Safari nor Chrome support those JavaScript versions. 
And it is not a matter of bugs, but lacking implementations.

No browser runs script specified with:

  type="text/ecmascript;version=2.0"
  type="application/ecmascript;version=2.0"
  type="text/ecmascript;version=3.0"
  type="application/ecmascript;version=3.0"

A. Should not the spec mandate that a browser must support a certain 
version of JavaScript if it tries to run it?

B. Should the spec mandate that a browser must run a script that it de 
facto supports, e.g. ecmascript 3 in Firefox?

I think neither issue is clear today. Perhaps this is outside the scope 
of HTML 5?


Regards

Lars Gunther
Received on Thursday, 30 October 2008 09:10:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC