What would happen if I start to define my script tags as ECMA? Will it execute to a different standard?
Does anyone actually use ECMA script instead of straight up Javascript…?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ECMAScript is a standard. JavaScript is an implementation of that standard (edition 3 of that standard to be more exact).
Other implementations of ECMAScript are ActionScript and JScript.
Also note that there isn’t one JavaScript. Each JavaScript engine may implement its own version of the language as long as it meets the ECMAScript requirements. This means that browsers (JS engines) may have additional functionality, but they all must have the base ECMAScript functionality.
And now, to answer your question, according to RFC 4329, if the media type is set to
application/ecmascript, rather thanapplication/javascript, it must adhere to a stricter standard.