Closed Bug 393373 Opened 17 years ago Closed 11 years ago

Listitems have value undefined when invisible due to scrolling

Categories

(Core :: General, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 250123

People

(Reporter: boris, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Inconsistent behavior when retrieving the value of a listitem in case the item is not visible due to scrolling (out of range):

var item = listbox.getItemAtIndex(i);    //index i is not visible
alert(item.value);                       // alerts undefined
alert(item.getAttribute("value"));       // alerts correct value



Reproducible: Always

Steps to Reproduce:
see code snippet above
Actual Results:  
see comments in code snippet

Expected Results:  
identical behavior
Technically this might be the same problem as for bug 294029
I think its a duplicate of bug 250123
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 2010-06-30]
Version: unspecified → 2.0 Branch
This bug is still reproducable in the latest 1.9.3 trunk and IMHO a dup of bug 250123. While it's a XUL problem only it doesn't has anything to do with the named plugins.
Product: Firefox → Core
QA Contact: general → general
Whiteboard: [CLOSEME 2010-06-30]
Version: 2.0 Branch → Trunk
This bug is still reproducible on FF4.

I've wasted 2 hours debugging on this one. VERY frustrating...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.