ECMAScript is the standard. JavaScript is an implementation of this standard (more precisely, option 3 of this standard).
Other implementations of ECMAScript are ActionScript and JScript.
Also note that there is no JavaScript. Each JavaScript engine can implement its own version of the language if it meets the requirements of ECMAScript. This means that browsers (JS engines) may have additional features, but all must have the basic functionality of ECMAScript.
And now, to answer your question, in accordance with RFC 4329 , if the media type is set to application/ecmascript and not application/javascript , it must adhere to a more strict standard.
This document defines the equivalent processing requirements for the text / javascript, text / ecmascript, and application / JavaScript types. The use and support of the type of media application / excript is much less common than for other types of media defined in this document. By using what is in its favor, this document defines stricter processing rules for this type contributing to more interoperable processing.
Alin Purcaru Nov 24 '10 at 21:25 2010-11-24 21:25
source share