Closed Bug 136885 Opened 23 years ago Closed 23 years ago

select box doesn't update display when text value of selected item changes

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: eric, Assigned: john)

References

()

Details

(Whiteboard: [FIX])

Attachments

(3 files, 1 obsolete file)

If you change the text value of a select box builds before about april 2002 would update the display as well, but current builds will show the proper value in the drop down, if you changed the text value of the item that was currently selected it does not change unless you select a different item, and then select the previously selected item again. a simple testcase can be found at http://www.linuxsquared.com/selectbug.html
Attached file A simple test case
Confirming 2002041103 NT4 --->jkeiser
Assignee: Matti → jkeiser
Status: UNCONFIRMED → NEW
Component: Browser-General → HTML Form Controls
Ever confirmed: true
In Linux 2002041409 not only does the text not get updated but the drop down appears detached from the select box - there is a visible gap on the screen between the two I am attaching a second text case which demonstrates text value change problem without the drop down gap. Modifying select boxes is a very commonplace JS practice and I would suggest this should be fixed for Moz 1.0.0.
Status: NEW → ASSIGNED
Keywords: nsbeta1
nsbeta1-
Keywords: nsbeta1nsbeta1-
*** Bug 138410 has been marked as a duplicate of this bug. ***
*** Bug 140430 has been marked as a duplicate of this bug. ***
*** Bug 143714 has been marked as a duplicate of this bug. ***
Attached patch Patch (obsolete) — Splinter Review
Comment on attachment 83573 [details] [diff] [review] Patch r=rods
Attachment #83573 - Flags: review+
Whiteboard: [FIX]
Comment on attachment 83573 [details] [diff] [review] Patch I HAVE NEVER SEEN A MORE PERFECT PATCH! sr=shaver.
Attachment #83573 - Flags: superreview+
This fix is so low-risk that it's ridiculous; it has decent visibility, too, there are several dups. Should be considered for nsbeta1.
Keywords: nsbeta1-nsbeta1
Attached patch Patch v1.1Splinter Review
This patch is a bit more optimized; since AppendChildTo() already handles notification the only case we have to deal with is where we are changing the existing text node.
Attachment #83573 - Attachment is obsolete: true
Comment on attachment 83924 [details] [diff] [review] Patch v1.1 r=rods
Attachment #83924 - Flags: review+
Comment on attachment 83924 [details] [diff] [review] Patch v1.1 sr=attinasi
Attachment #83924 - Flags: superreview+
fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
I'm sorry but this bug is still in Mozilla 1.0 Final. (At least on Mac OS X)
Not fixed on my win2k box too (Gecko/20020530).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: