Collapsible sections don't expand in IE8
Bug #402160 reported by
Gavin Panella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
In Progress
|
High
|
Graham Binns |
Bug Description
Collapsible sections are broken in IE8 on Windows. For example:
* https:/
Search for "a" and you'll be presented with a few possible
duplicate bugs. The areas will not expand. IE reports an "Error on
page", "Invalid argument" in dom.js, line 669, char 13.
* http://
The "Add a comment/attachment" area will not expand, yielding the
same error as above.
The same error messages are reported for both normal and compatibility
mode.
Changed in launchpad: | |
status: | Triaged → In Progress |
tags: | added: regression |
affects: | launchpad → malone |
Changed in malone: | |
milestone: | 2.2.7 → none |
milestone: | none → 2.2.7 |
To post a comment you must log in.
The following patch to lazr-js shows more information about the error, and also makes things work again. Essentially, the error is caused when val is undefined, and it attempts to do style['height'] = undefined. I don't know why val should be undefined, nor do I know why that should really be a problem. Perhaps just doing val || null would be enough to work around this problem for now.
=== modified file 'lib/yui/ 3.0.0pr2/ build/dom/ dom.js' 3.0.0pr2/ build/dom/ dom.js 2008-12-15 13:29:08 +0000 3.0.0pr2/ build/dom/ dom.js 2009-07-21 11:04:28 +0000
att = CUSTOM_STYLES[att];
--- lib/yui/
+++ lib/yui/
@@ -666,7 +666,12 @@
}
}
- style[att] = val;
+ try {
+ style[att] = val;
+ }
+ catch (error) {
+ alert('style[' + att + '] = ' + val);
+ }
}
},