Skip to main content.
December 21st, 2007

Nice differencies

Nice, subtle differencies of Javascript language implementation between Mozilla-like and Explorer.

First one: this statement is legal in Mozilla:

var a = {el1: 1, el2: 2,}

Whereas in explorer must be changed to (notice the trailing ‘,’ removed):

var a = {el1: 1, el2: 2}

Then; this is legal in Mozilla:

var a = this.options.class;

Whereas in Explorer you must:

var a = this.options[’class’];

I’m not saying ‘explorer is guilty’ because, in fact, I don’t know which one variant is legal. Anyway: grrrr >_<

Posted by mattia as ajax, ecmascript, explorer, javascript at 4:18 PM CET

No Comments »