Javascript
Drupal JS Coding Standards - final version
I've finally got consensus on the JS coding standards we should adopt in Drupal. I got lots of useful feedback at Drupalcon Szeged last week, and so have now posted up a slightly modified version of my JS Coding Standards proposal in the Drupal handbook at http://drupal.org/node/172169 This is the final version (other than a few tweaks) and replaces the existing set of standards in the handbook. I've also included the final version below. Enjoy!
JavaScript Support and Array.indexOf in IE
JavaScript 1.6 was released in November 2005, and even though Internet Explorer 7 was released almost a year later in October 2006, it still uses the older JavaScript 1.5. I only discovered this fact recently when I started using Array.indexOf() in some lightbox code. It was all working fine in Firefox, but as soon as I started testing it in IE, it stopped!
JavaScript Coding Standards
More and more contributed modules in Drupal are including JavaScript files, so I want to add the ability to review JavaScript files to the Coder module. However, in order to do that there needs to be agreement on what coding standards we should be using for JavaScript.


