A browser issue, not JS Engine issue. Reassigning to Event Handling for triage or acceptance -
Assignee: rogerl → joki
QA Contact: pschwartau → janc
18 years ago
In my opinion Mozilla's behaviour is the correct one. Because of scoping, Mozilla finds the "background" (yes, the background link does not work either) and "link" properties from the BODY element (they are implied). See: http://www.w3.org/TR/html4/struct/global.html#edef-BODY You can verify that this is what is happening by adding, for example, "dump(background+'\n');" to the beginning of the background link OnMouseOver, and adding a non-empty background attribute to the BODY element. There are ways you can work around this behaviour. One is to not use the "reserved" DOM properties, so you would need to change the names of the background and link names to something that do not collide with DOM. Another way is to forget the names altogether and use relative addressing. Instead of "background.src" you could write "firstChild.src" because the IMG element is the first child of the A element. Updated URL so that it points to the actual frame where the "bug" appears. If you think I am wrong in my assesment, please reopen this bug and state why you think it really is a bug. Thank you for testing and reporting problems with Mozilla.
Mass update: changing qacontact to firstname.lastname@example.org
QA Contact: janc → ckritzer
Updating QA Contact.
QA Contact: ckritzer → lorca
Mozilla handles this correctly. Marking as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.