Skip to main content.
September 26th, 2008

Explorer javascript

ALWAYS remember. Whereas Firefox accepts gladly both “{a: 33,}” and “{class: ‘hidden’}”, Explorer only agrees on “{a: 33}” (notice missing semicolon) and “{’class’: ‘hidden’}”. Someone likely to dig on ECMAScript syntax definition and see whereas is Firefox too lax, or Explorer too tight?

Posted by mattia as explorer, firefox, javascript at 9:37 AM CEST

No Comments »

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 »

August 23rd, 2007

Firebug and document.open

Really, you shouldn’t mix the two things. I discovered today that, with firebug activated, writing to a document opened this way just produced big problems with inclusions of javascripts and CSS (just three out of 20+ was really included).

Did I already say “sigh, open source!”?

Posted by mattia as ajax, firebug, firefox, javascript at 4:06 PM CEST

No Comments »