Closed Bug 352482 Opened 19 years ago Closed 19 years ago

XUL listbox has no currentIndex property, only selectedItems

Categories

(SeaMonkey :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: roe.david, Unassigned)

Details

Attachments

(1 file)

535 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: netscape browser v7.2 the Javascript object for a XUL listbox has no currentIndex property, only selectedItems. Reproducible: Always Steps to Reproduce: 1. var lb = document.getElementById('my-listbox'); 2. var i = lb.currentIndex; 3. if (i == null) { alert('listbox has no currentIndex'); } Actual Results: the alert box is shown Expected Results: currentIndex should hold a value >= -1
What browser and version are you using? Can you attach a testcase?
Attached file brief testcase
This testcase does not work in Netscape v7.2 (Mac version), but works in Firefox.
> This testcase does not work in Netscape v7.2 (Mac version), but works in > Firefox. Ah, ok. Bugs needs to be filed against the latest release (preferable the latest trunk build). The latest realease is currently SeaMonkey 1.0.4 (soon 1.0.5). The next featured "version" is 1.1 and there are currently a 1.1a version at http://www.mozilla.org/projects/seamonkey/ . So, lots of stuff have happened since Netscape 7.2 came out. We also don't accept Netscape bugs in bugzilla.mozilla.org (never had, actually). Anyway, the good news is that the testcase actually works for me with a recent branch build of seamonkey (1.1b build). So, I'm going to mark this bug as "worksforme".
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: