Closed Bug 46536 Opened 26 years ago Closed 25 years ago

JS event not defined

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: vanbalen, Assigned: joki)

References

()

Details

On the above page I get the following error with 2000072608/Linux JavaScript error: http://carpoint.msn.com/Vip/Gallery/Toyota/Camry%20Solara/4.asp line 58: event is not defined I don't get any errors with NS4.7 or IE5.01
The error seems to occur in functions like this one, which is fired by mouseover events: function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; } } The JavaScript error is centered on the object above called "event". I do not see myself where it is defined in the script. Is this a Microsoft DOM element? Referring to the DOM group for further triage -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Reassigning to joki for futher investigation.
Assignee: jst → joki
If I remember correctly, "hand" is not a valid cursor style...but this error is about events...
event AKA window.event is IE's way of referencing events. This does not work in Mozilla or Navigator. In addition, Element.contains is an IE specific function. I don't think the is valid.
Agreed, I do not see window.event to be a real event in NS JS, nor is it defined by DOM. Marking invalid. If you think this decision is wrong, please state your case and present additional evidence. (Heh, that sounds like we are in court.)
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
vrfy invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.