admin管理员组

文章数量:1328973

The Mozilla Foundation continues to add new language features to JavaScript. They're up to version 1.8 now where 1.5 was more or less the ECMA baseline.

However, Firefox is the only browser that supports the latest version and IE is firmly stuck at a 1.5-equivalent JScript.

What purpose do the Firefox-only extensions serve? Or are they just lying dormant until (and if) the rest of the browsers catch up?

The Mozilla Foundation continues to add new language features to JavaScript. They're up to version 1.8 now where 1.5 was more or less the ECMA baseline.

However, Firefox is the only browser that supports the latest version and IE is firmly stuck at a 1.5-equivalent JScript.

What purpose do the Firefox-only extensions serve? Or are they just lying dormant until (and if) the rest of the browsers catch up?

Share Improve this question asked Apr 4, 2009 at 22:14 David CitronDavid Citron 43.6k21 gold badges64 silver badges73 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 7

Firefox, Thunderbird, and other XUL apps also have large portions of themselves written in JavaScript. A more featureful JavaScript means a better development environment for Firefox and other Mozilla apps.

Extending the language is a good idea, even if only one browser is doing it - eventually it will prove itself and be made into the standard at which time other browsers will have to catch up.

Otherwise, how can progress be made - Microsoft does this all the time: would XMLHttpRequest have ever made it into the standards if Internet Explorer wouldn't have implemented it first?

From the Mozilla perspective the purpose of these changes, except for adding more capabilities for use by web developers, is to lead up to JavaScript 2.0, that is being developed as the next revision of ECMA 262 (revision 4) TC39 workgroup.

Future browsers will support JavaScript 2.0. In the mean time, developers are invited to take advantage of these extra features - natively in Firefox and using JavaScript libraries that provide backward patibility with Internet Explorer. I find this very useful.

Also, it may be interesting to note that Webkit (the engine developed by KDE and used by Safari, Chrome and several free software browsers) supports JavaScript 1.7.

The biggest reason at the moment for improved JavaScript is for extension writers, who need not worry about cross-browser patiblity.

JavaScript is a trademark by Sun which was licensed to Netscape and is now held by the Mozilla Foundation. Microsoft has their own implementation of the language called JScript, but there are others (eg. DMDScript).

ECMAScript was an afterthought to add a mon baseline to the various implementations. So it's only natural that language development continues outside the standards mittee, which is free to add the changes pioneered by the implementors in future revisions of the standard (eg the array extras introduces in JS1.6 will be in ES3.1).

本文标签: internet explorerJavaScript versions later than 15whyStack Overflow