summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-11 07:54:50 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-11 07:54:50 +0200
commite6af24eb6c1defe0fd221326029d49fa1858ad14 (patch)
tree887a2e80123220d830e15d0dfa5c672d8ba18091
parent4483ac5c5f082e4efb21ab711aec9a0a74d20448 (diff)
downloaduxp-e6af24eb6c1defe0fd221326029d49fa1858ad14.tar.gz
Add event.srcElement (the alias for event.target)
Issue #622
-rw-r--r--dom/webidl/Event.webidl2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/webidl/Event.webidl b/dom/webidl/Event.webidl
index f87dc195ca..70a0ef5138 100644
--- a/dom/webidl/Event.webidl
+++ b/dom/webidl/Event.webidl
@@ -17,6 +17,8 @@ interface Event {
readonly attribute DOMString type;
[Pure]
readonly attribute EventTarget? target;
+ [Pure, BinaryName="target"]
+ readonly attribute EventTarget? srcElement;
[Pure]
readonly attribute EventTarget? currentTarget;