Closed Bug 65337 Opened 24 years ago Closed 24 years ago

Event onmouseOver is fired twice

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 32415

People

(Reporter: bugs4hj, Assigned: joki)

Details

Attachments

(1 file)

WinNT4 build 2001011220 (I didn't check Linux/mac) Trying to find the real source for some other bugs I have already found out that the onkeypress event is fired twice, in a very specific case. Now it looks the same for the onmouseOver event, but this time in a very simple testcase. I will attache a testcase where you will see that this is true. This 'small' error is causing other larger bugs, where users use there mouse and keyboard to navigate a site. Reproducible: always (or almost always) 1 - put your mouse on cell 1 (and don't move that) 2 - now you should see a message (the first one) 3 - use ENTER only to confirm that message 4 - now you should see a message (the second one) 5 - use ENTER only to confirm that message 6 - take the mouse off that cell 7 - now you should see a message (the third one) 8 - use ENTER only to confirm that message If this didn't work the first time, just try another time. Question "Did you see function:unset?" because I'm not getting that kind of message at all. So, for some odd reason the onMouseOut event isn't fired at all, or did I miss that one?
Attached file Testcase/example
Dup candidates : bug 24976 and bug 47436 (sorry didn't have time to query more thoroughly)
I see this on Mac OS 9.1 build ID 2001011208. Marking new, changing platform and os to all, nominating mozilla1.0.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mozilla1.0
OS: Windows NT → All
Hardware: PC → All
This bug blocks image rollovers and other nice web stuff.
There are a series of things happening here. First, the double firing isn't really a double firing, its just event bubbling. The mouse is moving from the page to the cell (event 1) and from the cell to the text Node (event 2). event 2 will go the the text Node but it also bubbles up to the cell. If you only want the mouseovers for the cell look compare event.target with the cell object. There is a bug open for errors in 4.x content due to event bubbling (bug 14692) but new content is expected to handle bubbling correctly. Next, the mouseouts are not being fired because the alert is eating them. This is a valid bug. I have a duplicate of it, bug 32415. Still not sure how we plan to fix this one. Third, when I removed the alerts to just test via the color changes I noted that the color change updates are kind of wacked. The first one seems to work fine but the other two appear not to change, though if you force the window to update you can see they have changed. I'm not sure what would cause that. If you continue to run into the color change problem I'd suggest filing a layout bug for it. I'm going to mark this bug as a dupe of 32415. *** This bug has been marked as a duplicate of 32415 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Reassigning QA Contact for all open and unverified bugs previously under Lorca's care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
QA contact updated
QA Contact: gerardok → madhur
verified dup
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: