Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keysJavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

EDIT: Actually, CoffeeScript's auto-stringification of reserved word property names is what led me to believe that it works. After re-testing properly it doesn't seem to work anywhere, so the question now is: are there any browsers that allow it as per ECMAScript 5 specification?

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

EDIT: Actually, CoffeeScript's auto-stringification of reserved word property names is what led me to believe that it works. After re-testing properly it doesn't seem to work anywhere, so the question now is: are there any browsers that allow it as per ECMAScript 5 specification?

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

EDIT: Actually, CoffeeScript's auto-stringification of reserved word property names is what led me to believe that it works. After re-testing properly it doesn't seem to work anywhere, so the question now is: are there any browsers that allow it as per ECMAScript 5 specification?

added 284 characters in body
Source Link
Alex Korban
  • 15.2k
  • 5
  • 46
  • 55

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

EDIT: Actually, CoffeeScript's auto-stringification of reserved word property names is what led me to believe that it works. After re-testing properly it doesn't seem to work anywhere, so the question now is: are there any browsers that allow it as per ECMAScript 5 specification?

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?

EDIT: Actually, CoffeeScript's auto-stringification of reserved word property names is what led me to believe that it works. After re-testing properly it doesn't seem to work anywhere, so the question now is: are there any browsers that allow it as per ECMAScript 5 specification?

Source Link
Alex Korban
  • 15.2k
  • 5
  • 46
  • 55

Browser support for using a reserved word as a property name in JavaScript

I'm trying to use "for" as an object property name. It seems to work fine in IE7, IE8, Firefox, Chrome and Opera, but apparently not in Safari.

My understanding is that ECMAScript 5 allows it (as discussed in JavaScript keywords in hash keys).

Can I get a definitive list of browsers that support/don't support this somewhere?