Quick question out of curiosity:
code below works in Firefox and Chrome but not in Safari. Is this Javascript spec circumvented by Firefox and Chrome or is this a quirk in Safari?
var a = {};
a.var = "test";
in all (firefox, safari and chrome)
a["var"] = "test";
a.id = "another test";
works as expected.
Cheers,
Jeroen.
according to the ecmascript specification its not allowed,
from ecmascript-262:http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
based on that safari is the preferred behavior