Closed Bug 2989 Opened 26 years ago Closed 26 years ago

[EVENTTARG] Blank areas of elements doesn't fire events

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: erik, Assigned: joki)

References

()

Details

(Whiteboard: [TESTCASE] WORKSFORME (27/07/99))

Attachments

(1 file)

If I have an element with text in the event isn't fired until the text node fires the event. I'll show a short sample: <div style="background-color: yellow; width: 500px; height: 500px;" onmouseover="alert('K.')"> Short text </div> The text node fires the event that is then bubbled to the div node but the div node doesn't fire an event by itself.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4015 → 3847
QA contact re-assigned according to the product areas we're currently working on.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The behavior of mouseover isn't really specified to this level. If I mouseover the text, I'm going to get a mouseover on the text which will bubble up to the div. That's just the way it works at the moment. There was a separate bug where hitting the rest of the div would not cause an event at all. This is fixed now.
Status: RESOLVED → REOPENED
This isn't satisfactory from a dhtml developer point of view. This forces me to fill up the entire container with text which isn't possible (the borders). For example I can't create buttons, toolbars etc that can be clicked anywhere, only at the text. This is almost as bad as when you in NN4.x only provided a background color behind the text in the container!
Status: REOPENED → ASSIGNED
Resolution: FIXED → ---
No, you still get events on the div. And if you're not keep in mind I only marked this fixed today, the change only went in hours ago. So the deal is over empty space -> event goes to div over text -> event goes to text, bubbles to div. This is the solution.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Build: 1999-04-26-08 Not fixt. I get no alert for this test. I put the test included in this bug report on http://slip/projects/marvin/bugs/bug_2989.html for easier reference.
Resolution: FIXED → ---
The test doesn't use window.alert. It writes out the the text using DOM and it worked with 1999-04-22 (maybe something went wrong during those two days?) I don't see how it becomes more easy when the provided URL doesn't work :-) The old URL is still available at http://webfx.eae.net/gecko/testEvents.html
Yeah, noticed the change still in my tree. Must have forgot to check it in. I'll add it when I can.
Whiteboard: [MAKINGTEST] jonesev@home.com (26/07/99)
Whiteboard: [MAKINGTEST] jonesev@home.com (26/07/99) → [TESTCASE] WORKSFORME (27/07/99)
It seems to me that the original problem, Blank areas of elements doesn't fire events, is fixed now. I tested the code in the bug description that was created by d96erik@dtek.chalmers.se (and I created a test case for the bugathon) on the daily build for July 26, 1999 on Linux and the blank areas of the DIV fired the onmouseover events. Can anyone else (maybe a Mozilla engeneer?) confirm if this is fixed now?
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Marking this resolved-fixed. I think joki checked in the fix sometime between April and now. It sure looks fixed. This bug dealt only with the second test on the page. However: I couldn't find any bugs on the other two tests on the page. The first one is IE-specific syntax that has been replaced in DOM2. The problem in the third test area is a dup of bug 11009 and I will add a note there.
Status: RESOLVED → VERIFIED
Summary: Blank areas of elements doesn't fire events → [EVENTTARG] Blank areas of elements doesn't fire events
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: