mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
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:
parent
f34e69a52b
commit
bae330d559
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/bae330d559 Pull-request: https://github.com/SerenityOS/serenity/pull/14323 Reviewed-by: https://github.com/linusg
@ -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; }
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user