diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-06-18 16:07:51 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-18 16:13:03 +0100 |
commit | bae330d55942554fa1e7a74f6ddb1abcc0dd9b64 (patch) | |
tree | 9b993b3faaab7c56346de3e9d2d943b553feb49c /Userland/Libraries/LibWeb/DOM/Event.h | |
parent | f34e69a52b272587002e2577a3844a2b5e17711b (diff) | |
download | serenity-bae330d55942554fa1e7a74f6ddb1abcc0dd9b64.zip |
LibWeb: Rename Event.srcTarget to Event.srcElement
It's called srcElement instead of srcTarget.
Required by w3school's search focus handler.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Event.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Event.h | 2 |
1 files changed, 1 insertions, 1 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; } |