Closed Bug 156050 Opened 22 years ago Closed 22 years ago

select boxes cannot be cleared by setting options.length =0

Categories

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

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tim, Assigned: john)

Details

Attachments

(1 file)

In all JS 1.5 browsers including NS 6.2, setting the select.options.length value
of a select box to zero clears all options and clears the select box.  Mozilla
1.0 deletes the options, but not clear the value currently displayed.
Confirming with Mozilla trunk binary 20020701xx on WinNT.
Browser, not engine ---> DOM Level 0; cc'ing jkeiser -
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
Happens on Linux, too. OS: Win XP ---> All.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
jkeiser, don't you have a patch for this rattling around?
Assignee: jst → jkeiser
Whiteboard: DUPEME
I swear I've seen a bug like this before, but it's not in my bugmail.  bug
136885 was somewhat similar, however.
Has been fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: