Closed Bug 2195 Opened 26 years ago Closed 25 years ago

Compatibility: select[n].value = select.options[n].value

Categories

(Core :: DOM: Core & HTML, defect, P2)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

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.
Status: NEW → ASSIGNED
Setting all current Open/Normal to M4.
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: 4015 → 4616
QA contact re-assigned according to the product areas we're currently working on.
Target Milestone: M4 → M5
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?
Assignee: vidur → pollmann
Status: ASSIGNED → NEW
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.
Status: NEW → ASSIGNED
Target Milestone: M5 → M6
Target Milestone: M6 → M7
*** Bug 3340 has been marked as a duplicate of this bug. ***
Redistributing bugs...
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M9 → M7
Just checked in a fix.
Status: RESOLVED → VERIFIED
Verified. Working fine now.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.