Closed Bug 110862 Opened 23 years ago Closed 23 years ago

javascript generated selects are unselectable

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 100511

People

(Reporter: dvrsn, Assigned: alexsavulov)

References

()

Details

A select list which is generated by javascript using document.writeln pops up
correctly when clicked on and the options are displayed, but cannot be chosen in
any way that I can determine.  I noticed this problem on the Yahoo! Games Chess
page, where this problem prevents joining a room and generates an error on the
javascript console, but the bahavior is more simply reproduced with a short
fragment:

<form>
Zoom <select>
<script>
document.writeln('<option value="w">option W<option value="X">option X');
</script>
</select>
</form>

The select box can have focus but no selection can be made.  Also a 'selected'
value on any of the options will have no effect.

If a single <option> is inserted before the javascript-generated options, then
the select box works normally.
Marking as dupe of bug 100511.

Reporter: In future, please use the Bugzilla Helper for filing bugs:
http://www.mozilla.org/quality/help/bugzilla-helper.html
(among other things, it automagically adds your build id)

-> HTML Form Controls, for parity with dupe

*** This bug has been marked as a duplicate of 100511 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Component: Form Submission → HTML Form Controls
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.