Closed Bug 305052 Opened 19 years ago Closed 19 years ago

Incorrect handling of javascript to dynamically change image src

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: farrell, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

If you go to the test example I made (http://www.cs.umd.edu/~farrell/bug.html),
when you click on the + it will display some hidden text but SHOULD replace the
+ with a -.  Internet Explorer (YUCK!!) handles this same page the way I'm
expecting it to.

Reproducible: Always

Steps to Reproduce:
1. Go to http://www.cs.umd.edu/~farrell/bug.html
2. Click on the '+' image
3. Observe that the image doesn't change to a '-' as it should.

Actual Results:  
The '+' image remained.

Expected Results:  
The image should've changed to the '-'.
Did anything other than IE's scope pollution make you think that
"document.getElementById(... <img name=" ought to work? <img id= tends to work
better if you want to get it by id.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.