Open
Bug 807298
Opened 12 years ago
Updated 2 years ago
element.dispatchEvent returns false instead of true
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: neal, Unassigned)
References
()
Details
(Keywords: dom2)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
Steps to reproduce:
I executed the following JavaScript.
-------------------------
var e = document.createEvent('MouseEvents');
e.initEvent("click", true, true);
var a = document.createElement("A");
a.href = "javascript:void(0)";
var b = a.dispatchEvent(e);
Actual results:
b was false!
Expected results:
It should have been true. With this code, it is true.
-------------------------
var e = document.createEvent('Event');
e.initEvent("click", true, true);
var a = document.createElement("A");
a.href = "javascript:void(0)";
var b = a.dispatchEvent(e);
Updated•12 years ago
|
Comment 1•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•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•