Closed Bug 110124 Opened 24 years ago Closed 24 years ago

When using document.write to insert a combobox control into the document in different separate steps, the combobox's dropdown list is incorrectly rendered

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 91658

People

(Reporter: mozilla, Assigned: rods)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.5) Gecko/20011011 BuildID: 2001101117 I use JavaScript to dynamically build the contents of a document. Elaborated DOM techniques are not used. Instead document.write is used to be compatible with older browsers. When inserting a Select-tag into the document in more than one steps, i.e. using multiple document.write to insert on Select-Tag, the drop-down list of this combobox is rendered incorrectly, containing an empty entry in the list. Reproducible: Always Steps to Reproduce: Use the following HTML Code: <body> <script language="JavaScript"> <!-- document.write('<select size=1><option>Correct<\/option><\/select>'); document.write('<select size=1>'); document.write('<option>Wrong<\/option>'); document.write('<\/select>'); //--> </script> </body> The bug could be reproduced in both Mozilla and Netscape 6.2. It appeared on Windows XP and Windows 98. Other operating systems were not tested.
*** Bug 110126 has been marked as a duplicate of this bug. ***
Fixed because of bug 34297 landing. Could be a dupe of one of the bugs that depends on it.
got it Marking dupe *** This bug has been marked as a duplicate of 91658 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.