diff options
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Event.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Event.idl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Event.h b/Userland/Libraries/LibWeb/DOM/Event.h index 698b65250b..76d426c7c0 100644 --- a/Userland/Libraries/LibWeb/DOM/Event.h +++ b/Userland/Libraries/LibWeb/DOM/Event.h @@ -67,7 +67,7 @@ public: void set_target(EventTarget* target) { m_target = target; } // NOTE: This is intended for the JS bindings. - RefPtr<EventTarget> src_target() const { return target(); } + RefPtr<EventTarget> src_element() const { return target(); } RefPtr<EventTarget> related_target() const { return m_related_target; } void set_related_target(EventTarget* related_target) { m_related_target = related_target; } diff --git a/Userland/Libraries/LibWeb/DOM/Event.idl b/Userland/Libraries/LibWeb/DOM/Event.idl index 803cd7015e..7f34e239bd 100644 --- a/Userland/Libraries/LibWeb/DOM/Event.idl +++ b/Userland/Libraries/LibWeb/DOM/Event.idl @@ -6,7 +6,7 @@ interface Event { readonly attribute DOMString type; readonly attribute EventTarget? target; - readonly attribute EventTarget? srcTarget; + readonly attribute EventTarget? srcElement; readonly attribute EventTarget? currentTarget; sequence<EventTarget> composedPath(); |