Closed Bug 133867 Opened 23 years ago Closed 23 years ago

document.write options do not show up in combobox

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: john, Assigned: john)

References

Details

Attachments

(2 files)

When you document.write() a selected option into a combobox, blank shows up in
the combobox instead.

Another bug already exists with an obviously poor summary; creating this bug to
hold the patch and get it through the review process.
Attached file Testcase
Attached patch PatchSplinter Review
The problem is that when a textnode is added as a child of the option, the
combobox is not notified that the text of the option has changed.  This patch
fixes that, as well as a resultant recursion in the content sink.  (AppendChild
was called before parser state was eaten up, then BeginUpdate() got called from
the combobox, which flushed the text nodes again, and called AppendChild again
...)
*** Bug 130837 has been marked as a duplicate of this bug. ***
Comment on attachment 76508 [details] [diff] [review]
Patch

r=rods
Attachment #76508 - Flags: review+
Comment on attachment 76508 [details] [diff] [review]
Patch

sr=vidur. Glad to see the recursion problem caught. I'll buy that the fix
works.
Attachment #76508 - Flags: superreview+
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Comment on attachment 76508 [details] [diff] [review]
Patch

a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #76508 - Flags: approval+
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Keywords: nsbeta1nsbeta1+
QA Contact: madhur → tpreston
Verified fixed linux trunk build 2002061808, Win XP trunk build 2002061808 and
Mac OS X trunk build 2002061808
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: