<select> elements shows empty texts in IE 7.0.5730.11IC and IE 6.0
seaarg - November 27, 2007 - 13:11
| Project: | Active Select |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Description
When the function Drupal.jsAS.prototype.populate is called in activeselect.js it populates right the element, but in IE the texts are shown empty.
To make a quick fix i did:
var opt = new Option(text, value, false, selected);
opt.innerText = text;
$(this.targets[targetIndex]).append(opt);
Where before was:
$(this.targets[targetIndex]).append(new Option(text, value, false, selected));
And works correctly in Firefox, IE 6 and IE 7

#1
This seems to fix my IE7 problem. Safari and Firefox 2.x still works.
#2
Works for me on IE6,7 FF2 and Opera 9 (unless there's some extra empy lines, but I'm pretty sure this is an Opera bug).
#3
worked for me as well. thanks for this bug report.
#4
This is indeed a solution, but not a patch.
Here's a patch.
#5
thanks for giving this solution
#6
Confirms the patch solves the IE6/IE7 issue (and continues to work with FF3 as well.)
Any reason why this patch hasn't been rolled into a new release?