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)
Tracking
()
UNCONFIRMED
People
(Reporter: nlazarov, Unassigned)
Details
Attachments
(1 file)
570 bytes,
text/html
|
Details |
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.
Updated•11 years ago
|
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
Comment 2•7 years ago
|
||
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
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•