The Register® — Biting the hand that feeds IT

Feeds

Testing time for updated Javascript standard

Improved web apps interop promised

Customer Success Testimonial: Recovery is Everything

A "minimal but needed update" to ECMAScript, also known as Javascript, has been ratified by standards chiefs who have promised greater consistency between browsers.

ECMA-262 edition 5.1 packs a number of "editorial corrections" and bug fixes that it promised will make ECMA-262 edition "easier" and allow for better interoperability among web applications. It updates edition 5, approved in December 2009 and ratified by the ISO, IEC and ECMA International.

To help further on the interoperability front, ECMA has promised it will also publish – for the first time – a standardized test suite so developers can see just how far implementations of ECMAscript adhere to the official standard.

The suite is being worked on by ECMA Technical Committee 39, whose members include Microsoft, Google, and Mozilla. The suite will be delivered in installments, with the first version planned for December and updates coming later.

JavaScript was created by Mozilla's current chief technology officer, Brendan Eich, in 1995, with the first edition of standard published two-years later. In a statement marking the updated standard, Eich said it creates a "solid base" for the evolution of Javascript "by delivering crucial functionality such as strict mode and the Object Meta-Programming APIs."

Today, Javascript is supported by all the major browsers, and there's an intense competition between them to see who can run Javascript the fastest. This has come as the trend for building apps has moved from client/server to web/cloud-client, where apps execute in the browser.

It should therefore come as little surprise that Microsoft, Google, and Mozilla have become keenly interested in making sure their browsers run Javascript with as few problems as possible, in case this puts Internet Explorer, Chrome, or Firefox out of contention among web developers. ®

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Latest Comments

Evolution?

How can you have evolution when three of the major ...(I wont say players as they are more like the kid who takes any ball home when he isn’t allowed to win or just try to pop it) deliberately non-standard compliant 'competitors' have pre-cambrian legacy code they don’t want to loose and by joining in the standards process have managed to slow any gene changes to a point where evolution is almost just a dream.

0
0

Out of contention..?

"It should therefore come as little surprise that Microsoft, Google, and Mozilla have become keenly interested in making sure their browsers run Javascript with as few problems as possible, in case this puts Internet Explorer, Chrome, or Firefox out of contention among web developers. ®"

This is quite the opposite of what it does: We developers don't have the luxury of "This feature isn't supported by IE, we wont support IE - and let that be a lesson to MS!". We support the lowest common denominator of features. If IE doesn't implement a feature, we don't use that Firefox or Chrome feature.

If only the crappest was put out of contention. Oh, to dream...

Cheers,

-Oli

0
0

ECMAScript x.y

While improvements in the language are welcome where necessary, we developers are still left trying to support available browsers.

Quote: "It should therefore come as little surprise that Microsoft, Google, and Mozilla have become keenly interested in making sure their browsers run Javascript with as few problems as possible, in case this puts Internet Explorer, Chrome, or Firefox out of contention among web developers."

True enough, but developers cannot simply use the latest features and publish their web apps with a smile on their face. We're not even safe blindly calling our code 'Javascript'. http://stackoverflow.com/questions/2714694/which-javascript-versions-does-ie8-supports makes interesting reading.

Just last week I discovered that IE8 doesn't support forEach on Array objects, so [1, 2, 3].forEach(function(i)) {..} fails horribly. IE8 is going to be around until 2020, from what I heard about the extended lifetime of XP, and given that WinXP (probably) will never support IE9 there are going to be a lot of IE8 browsers around out there for a long time.. and of course IE7.. and we still get a few hundred IE6 hits a month. For now, I will stick to homogenising libraries such as http://dojotoolkit.org to write code that safely supports whatever browser the user is on. dojo.forEach([1, 2, 3], function(i) {..}) and you're done.

Of course, at least IE offers long term stability, unlike Mozilla: http://www.theregister.co.uk/2011/06/24/microsoft_attacks_mozilla_on_enterprise/

Good luck to the library developers, then, as they safely implement support for the new while maintaining support for the old.

Must be nice working in an enclosed environment like node.js where your platform guarantees a language implementation and such worries are other peoples' business :)

0
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
Apple: iOS7 dayglo Barbie makeover is UNFINISHED - report
Plus: You don't like the icons? Blame marketing
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry