Closed
Bug 3187
Opened 26 years ago
Closed 23 years ago
Option destructor glitch: loosing selection info [frame]
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: tupshin, Assigned: alexsavulov)
References
()
Details
(Keywords: dom1)
Attachments
(2 files)
The Javascript syntax to create a new menu item is
myoption = new Option("description","value");
This results in a Javascript Error "Option is not defined" in the 2/19/99 build.
Wasn't sure if this was properly a DOM bug, but I didn't see a JS specific
option
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 1•26 years ago
|
||
Yup. It's on my list.
Updated•26 years ago
|
Component: JavaScript → DOM
Product: Mozilla → NGLayout
Updated•26 years ago
|
Target Milestone: M5
Updated•26 years ago
|
Target Milestone: M5 → M6
Comment 3•26 years ago
|
||
Moving to M6 for now.
Comment 4•26 years ago
|
||
Updated•26 years ago
|
Assignee: vidur → pollmann
Status: ASSIGNED → NEW
Comment 5•26 years ago
|
||
OK, I've got my part of it working. The Option constructor works and the
resultant Option element can be added to a Select element's option list. This
modifies the content tree under the Select element. Unfortunately, this doesn't
actually modify the Select widget. Eric Pollmann has an existing bug related to
the last point.
Eric, I'm reassigning this bug to you. Please don't DUP it with your existing
bug. When you close the existing bug, try out the attached test case and close
this one as well.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Updated•26 years ago
|
Severity: major → minor
Summary: new Option constructor is not supported to create new menu items → Option destructor glitch: loosing selection info
Target Milestone: M6 → M9
Comment 6•26 years ago
|
||
I've got my part working now too. Well, there is still a glitch where the
"currently selected" information is lost when an option is removed via the DOM
methods (not using Select's Remove method), or when an option is replaced, as in
this demo.
Vidur, the frames and widget code will handle removal correctly (not destroy all
the options or loose selection information) if it is handed an index. For
example, if you use the <SELECT>'s Remove method, things are handled correctly.
Can you come up with a way to divine the index? Pusing that part of the bug off
to M9 or so...
Mostly working, but still a glitch. I have a couple apps that change the items in one menu when an item is selected from another. This works, but it doesn't actually updates until I first click and change the first menu, and *then click and not change the same menu*. I have to click twice on it before it will reflect the update. These apps are internal, but I could make one available on a public net if it is necessary.
Comment 8•26 years ago
|
||
Yep, that is another, unrelated problem you are seeing, bug 3322. If you have a
good test case for that bug, feel free to add it to the bug report for 3322,
thanks!
Comment 9•26 years ago
|
||
The glitch you noticed should be fixed now for Windows and GTK - see bug 3322.
Reporter | ||
Comment 10•26 years ago
|
||
Yes, the symptoms that I saw attributed to bug 3322 have been fixed for my test cases...whoo whoo ;-)
Comment 11•26 years ago
|
||
*** Bug 6928 has been marked as a duplicate of this bug. ***
Updated•26 years ago
|
Target Milestone: M9 → M15
Comment 12•25 years ago
|
||
After careful consideration, I've decided that I probably won't get this bug in
for M12. Currently I have nearly 50 bugs scheduled for M13, so there is a
possibility that this bug may need to be moved out farther still.
Updated•25 years ago
|
OS: Windows 98 → All
Hardware: PC → All
Target Milestone: M13 → M17
Comment 13•25 years ago
|
||
This is going to take a lot of work and has little payoff.
Pushing off to M17...
Comment 14•25 years ago
|
||
Rescheduling - bugs of this priority won't make it until around M19.
Target Milestone: M17 → M19
Comment 16•25 years ago
|
||
This bug has been marked "future" because the original netscape engineer working
on this is over-burdened. If you feel this is an error, that you or another
known resource will be working on this bug,or if it blocks your work in some way
-- please attach your concern to the bug for reconsideration.
Target Milestone: M20 → Future
Updated•24 years ago
|
Component: DOM Level 1 → DOM HTML
Comment 20•23 years ago
|
||
As far as I can tell, everything is working fine now. I can do everything
expected in the test case. I tried creating a testcase that used the DOM
removeChild() method and that appears to work too. Can someone explain more
clearly what is supposed to go wrong?
I'll give it a week and close this as WORKSFORME if there are no objections.
Comment 21•23 years ago
|
||
Comment 22•23 years ago
|
||
Bulk reassigning form bugs to Alex
Assignee: pollmann → alexsavulov
Status: ASSIGNED → NEW
Assignee | ||
Updated•23 years ago
|
Summary: Option destructor glitch: loosing selection info → Option destructor glitch: loosing selection info [frame]
Comment 23•23 years ago
|
||
jkeiser's testcase works for me as well on linux
Comment 24•23 years ago
|
||
worksforme 2001-11-09-09.
Comment 25•23 years ago
|
||
I'm certain Alex won't have any problem if we close this one. Woohoo, 4-digit
bug closed!
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 26•23 years ago
|
||
You're damn right John. I'm really glad when bugs get resolved :-)
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•