Closed
Bug 2195
Opened 26 years ago
Closed 26 years ago
Compatibility: select[n].value = select.options[n].value
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
FIXED
M7
People
(Reporter: pollmann, Assigned: pollmann)
References
()
Details
In Communicator, select[n].value is a shortcut to select.options[n].value.
This is not the case with Gecko.
However, sites may be using this feature (http://snorkel/ernie/top100.html being
one) and it may be desired for compatibility mode.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 2•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA contact re-assigned according to the product areas we're currently working
on.
Updated•26 years ago
|
Target Milestone: M4 → M5
Assignee | ||
Comment 4•26 years ago
|
||
Vidur, this is a dup of bug 3340 (or vice versa). I'm not sure how to attack
this. Should we be enabling this for backwards compatibility?
I'm sure I'm oversimplifying, but can we just give HTMLSelectElement a length
attribute and an item(index) method in HTMLSelectElement.idl, then define the
corresponding methods? How else does the js know that it can index into an
HTMLCollection?
Updated•26 years ago
|
Assignee: vidur → pollmann
Status: ASSIGNED → NEW
Comment 5•26 years ago
|
||
Eric, since the standard DOM doesn't define this, we need to add an additional
interface that includes the item() method and length property. To be conformant
with previous cases, this additional interface is generally prefixed with "NS"
(NSHTMLSelectElement) and the IDL for it is placed in the same file as that of
the original interface (HTMLSelectElement.idl). Regenerating the IDL will create
a new XPCOM interface that needs to be implemented by the SELECT element class.
The JavaScript glue stuff should then work.
Let me know if you have any questions.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•26 years ago
|
Target Milestone: M5 → M6
Assignee | ||
Updated•26 years ago
|
Target Milestone: M6 → M7
Assignee | ||
Comment 7•26 years ago
|
||
Redistributing bugs...
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M9 → M7
Assignee | ||
Comment 8•26 years ago
|
||
Just checked in a fix.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 9•26 years ago
|
||
Verified. Working fine now.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•