Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Javascript version(s) does IE8 supports?

According to Wikipedia, IE8 only supports Javascript 1.5. So they are saying IE8 completely ignores Javascript versions 1.6, 1.7, 1.8 and 1.9.

Should I trust? Is it true?

like image 618
MatteoSp Avatar asked Apr 26 '10 15:04

MatteoSp


People also ask

What version of JavaScript does Internet Explorer support?

Support for recent versions of JavaScript. Internet Explorer 11 doesn't support JavaScript versions later than ES5. If you want to use the syntax and features of ECMAScript 2015 or later, or TypeScript, you have two options as described in this article.

Does IE8 support HTML5?

IE8 beta 2 doesn't implement the HTML5 parsing algorithm or the new elements (no <canvas> or <video> support). There are also bug fixes that align IE8 better with HTML5. so the answer is that for all fits and purposes, IE8 does not support html5 - just some randome bits and pieces of it.

What are different JavaScript versions?

The Original JavaScript ES1 ES2 ES3 (1997-1999) The First Main Revision ES5 (2009) The Second Revision ES6 (2015) Yearly Additions (2016, 2017, 2018, 2019, 2020)


2 Answers

Well, actually the IE implementation is called JScript, JavaScript(TM) is the implementation of Mozilla.

JScript and JavaScript are two ECMAScript-based dialects.

JavaScript 1.5 conforms with the ECMAScript 3rd Edition Standard, the subsequent versions, JS 1.6, 1.7 and 1.8 introduce language features that are out of that standard edition, often called Mozilla Extensions.

That's why JScript doesn't have any of these features, because they are not part of the ECMA Standard.

like image 118
Christian C. Salvadó Avatar answered Oct 11 '22 10:10

Christian C. Salvadó


This test taken from here returns 1.3 in my Internet Explorer 8 64-bit.

<SCRIPT Language="JavaScript1.3"> jsver = "1.3"; </SCRIPT> <SCRIPT Language="JavaScript1.4"> jsver = "1.4"; </SCRIPT> <SCRIPT Language="JavaScript1.5"> jsver = "1.5"; </SCRIPT> <SCRIPT Language="JavaScript1.6"> jsver = "1.6"; </SCRIPT> <SCRIPT Language="JavaScript1.7"> jsver = "1.7"; </SCRIPT> <SCRIPT Language="JavaScript1.8"> jsver = "1.8"; </SCRIPT>  <BODY>  <SCRIPT LANGUAGE="JavaScript"> document.write("<B>Your browser supports JavaScript version " + jsver + ".</B>") </SCRIPT>  </body> </html> 
like image 28
Pekka Avatar answered Oct 11 '22 09:10

Pekka