Open Bug 1014004 Opened 11 years ago Updated 3 years ago

event.target is text node in click event after hiding parent in mouseup event

Categories

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

29 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nlazarov, Unassigned)

Details

Attachments

(1 file)

User Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.17 Steps to reproduce: In a simple <div> element add mouseup and click event listeners. In the mouseup event listener hide the event.target - event.target.style.display = "none"; In the click event check the value for the event.target. Click the div content and observe the output - the event.target for the click event handler is the text node. Actual results: The event target for the click event handler is the text node within the <div> container. Expected results: The event target in the click event handler should still be the <div> element.
Component: Untriaged → DOM: Events
Product: Firefox → Core
I forgot to mention that this issue may result in JS error in Google Analytics scripts when they are present on the page. The error is - TypeError: a.getAttribute is not a function
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: