ecmascript 5 and the script tag

Maciej Stachowiak mjs at
Thu Apr 16 14:56:33 PDT 2009

On Apr 16, 2009, at 2:37 PM, kevin curtis wrote:

> Hi
> Has it been established how browsers will handle ecmascript 5? e.g.
> <script type="application/ecmascript;version=5"> ...
> The above is from the es4 proposal with 4 replaced with 5:
> Also, how will ecmascript shells process ecmascript 5 scripts?
> Spidermonkey has the -v flag (as well as the version() builtin):
> ./js -v 5 -e "print('version: ' + version())"
> Is it likely that the the c/c++ 'script' objects in the test
> implementations will have a property indicating the ecmascript  
> version of
> the script?

I don't think there is a need for out-of-band declared versioning in  
ES5 as specified. Browsers can and should handle all scripts as ES5  
once they implement the standard.

  - Maciej

More information about the es-discuss mailing list