Build with this ID:
$Id: dhtml_menu.js,v 1.10.2.10 2008/04/15 00:05:34 brmassa Exp $
contains this line:
menu = document.getElementById('menu-' + cookieList[i]);
That causes a runtime error to display in IE: Object doesn't support this property or method.

For this release only (?), the fix is to modify dhtml_menu.js and change that one line to:
var menu = document.getElementById('menu-' + cookieList[i]);
Note the 'var' keyword is required to create this new object.

I didn't check intermediate releases but the following latest dev cut (6.x.3-3.0-alpha) doesn't contain that line anymore:
dhtml_menu.js,v 1.16 2008/07/08 13:44:25 arancaytar Exp $

It might be worth it to anyone running v1.0.5 or prior to check their code.

I hope that helps someone.

Comments

cburschka’s picture

Version: 6.x-1.05 » 6.x-2.x-dev

It might still be in 6.x-2.x-dev, and I'll fix it there.

cburschka’s picture

I'm assuming you also need to declare the other variables? There's submenu right above that. I don't claim to understand the mysterious ways of IE, but it would make sense to put a var before all the first usages of the variable.

cburschka’s picture

Status: Active » Needs review
StatusFileSize
new1.84 KB
new1.83 KB

These two patches work on 6.x-1.x and 6.x-2.x, respectively. I'd like a test and code check before I commit them though.

cburschka’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

Committed to DRUPAL-6--1 and DRUPAL-6--2. There is an undeclared variable in DRUPAL-6--3 too, which I'll fix there too.

cburschka’s picture

StatusFileSize
new817 bytes

Here's the patch for 6-3 and 7.

cburschka’s picture

Status: Needs review » Fixed

Committed to HEAD and DRUPAL-6--3.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.