LibWeb: Rename Event.srcTarget to Event.srcElement

It's called srcElement instead of srcTarget.
Required by w3school's search focus handler.
This commit is contained in:
Luke Wilde 2022-06-18 16:07:51 +01:00 committed by Linus Groh
parent f34e69a52b
commit bae330d559
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -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();