From bae330d55942554fa1e7a74f6ddb1abcc0dd9b64 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 18 Jun 2022 16:07:51 +0100 Subject: LibWeb: Rename Event.srcTarget to Event.srcElement It's called srcElement instead of srcTarget. Required by w3school's search focus handler. --- Userland/Libraries/LibWeb/DOM/Event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/DOM/Event.h') 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 src_target() const { return target(); } + RefPtr src_element() const { return target(); } RefPtr related_target() const { return m_related_target; } void set_related_target(EventTarget* related_target) { m_related_target = related_target; } -- cgit v1.2.3