Closed
Bug 352482
Opened 19 years ago
Closed 19 years ago
XUL listbox has no currentIndex property, only selectedItems
Categories
(SeaMonkey :: General, defect)
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
Comment 1•19 years ago
|
||
What browser and version are you using? Can you attach a testcase?
This testcase does not work in Netscape v7.2 (Mac version), but works in Firefox.
Comment 3•19 years ago
|
||
> 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.
Description
•