Open Bug 379095 Opened 15 years ago Updated 9 months ago

mouseout event in embedded (X)HTML document fails to fire

Categories

(Core :: DOM: Events, defect, P5)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: wcx1570, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

When an (X)HTML document is embedded in a containing (X)HTML document by means of the HTML object element, mouseout events on HTML elements of the embedded (X)HTML document fail to fire properly when mousing out of the HTML object element to the containing (X)HTML document. On mousing out of the HTML object element, a mouseout event will fail to fire until the next mouse over of the same HTML object element. The exact behavior is dependent upon the structure of the embedded (X)HTML document and manifests in two cases.

In the following, "HTML object element" is contained in the containing (X)HTML document. An "embedded HTML element" refers to an HTML element within the embedded (X)HTML document with an attached event handler.

Case 1

If the containing blocks of the HTML object element and an embedded HTML element are coincident and without any intervening HTML content then the mouseout event will not fire when mousing out of the HTML object element across the coincident containing block side(s). The mouseout event will fire upon the next mouse over on the same HTML object element.

Case 2

If the containing blocks of the HTML object element and an embedded HTML element are not coincident or are coincident with intervening HTML content then the mouseout event may or may not fire when mousing out of the HTML object element depending on the traversal rate of the mouse.

If the traversal rate of the mouse across intervening HTML content is sufficiently slow when exiting the HTML object element then the mouseout event will fire before the mouse exits the HTML object element container - the expected behavior.

If the traversal rate of the mouse across intervening HTML content is sufficiently fast when exiting the HTML object element then the mouseout event does not fire until the next mouse over on the same HTML object element.

Reproducible: Always

Steps to Reproduce:
1.embed an (X)HTML document in another X(HTML) document with the HTML object element.
2.attach a mouseout event handler to any HTML element in the embedded document
3.
Actual Results:  
mouseover the HTML element in the embedded HTML document then mouseout of the HTML object element into the containing document, the mouseout event will fail to fire until mousing over the object element again.

Expected Results:  
mouseout should fire upon exiting the container of the HTML element of the embedded (X)HTML document even where the mouse exits the container of the HTML object element.

1. mouseout events work correctly when using the HTML iframe element to embed an (X)HTML document but fail when using the HTML object element.

2. Opera8/9 work properly with the HTML object element.

3. XHTML 1.0 documents using iframe elements must use object elements in XHTML 1.1 since iframe is deprecated in XHTML 1.1. Behaviors using the mouseout event break badly when migrated to XHTML 1.1 and the HTML object element.

4. This problem also affects SeaMonkey 1.1.1 build:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1

5. I have created an XHTML demo which clearly and consistently demonstrates the problem with far better documentation than can be done in a bug report. However, there appears to be no way to upload the demo with the bug report. Email if you would like a copy of the demo.
contains three XHTML files that demo the mouseout event failure. the main file is objectembed.html which embeds the files list.html and table.html. in addition to demonstrating the problem there is also a detailed description of the problem included.
Assignee: events → nobody
QA Contact: ian → events
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.