Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wahnfrieden
on Jan 9, 2011
|
parent
|
context
|
favorite
| on:
Ie7-js
Another JS bug in older versions of IE (6 for sure, not sure about later ones) occurs when you end an array or hash with a comma after the last element, e.g. {foo: bar,}
nikz
on Jan 10, 2011
[–]
IIRC, this is actually invalid Javascript syntax that Chrome/Firefox/Safari choose to ignore.
JSLint picks it up:
Error: Problem at line 1 character 22: Extra comma. var x = { foo : "bar", };
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: