Closed Bug 16893 Opened 20 years ago Closed 20 years ago

onmouseout not called for absolute divs?

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jrohlf, Assigned: joki)

Details

Attachments

(2 files)

Using M10 viewer:

onmouseover is called and background changes to red but background
never changes to black.

As an aside: I've noticed that the implicit width of a div tag
(without width specification) is often wider than the content it encloses.
I know not what the DOM spec says. IE5 seems to do the intuitive thing
and clamps the width to the contained content.

<head>
</head>
<body>

<div id="div0" style="color:white; position:absolute; top: 0;"
onmouseover="this.style.backgroundColor='red'"
onmouseout="this.style.backgroundColor='black'">
div0
</div>

<div id="div1" style="color:white; position:absolute; top: 30;"
onmouseover="this.style.backgroundColor='red'"
onmouseout="this.style.backgroundColor='black'">
div1
</div>

<div id="div2" style="color:white; position:absolute; top: 60;"
onmouseover="this.style.backgroundColor='red'"
onmouseout="this.style.backgroundColor='black'">
div2
</div>

</body>
</html>
Could the 'this' be being set wrong in the onmouseout context?  Considering
other mouseout bugs, that wouldn't surprise me too much.

The events do work.  Test case to be attached.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This fixed, although the attached testcase doesn't have the color changes in it
so you'll either have to go by the 'dump' messages in the testcase or copy/paste
the enclosed case with the color changes to verify this.
Keywords: verifyme
Verified fixed.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.