summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLInputElement.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-10-14 16:18:49 +0100
committerLinus Groh <mail@linusgroh.de>2022-02-08 17:47:44 +0000
commit3bb5c6207fbdbe80041bd603882063165b440e00 (patch)
tree659a79feb7e22a8fb1df84bcf30a93f6289cd01f /Userland/Libraries/LibWeb/HTML/HTMLInputElement.h
parentf71f404e0c56497bdf1b65a4a69b45de51e8e42c (diff)
downloadserenity-3bb5c6207fbdbe80041bd603882063165b440e00.zip
LibWeb: Make FormAssociatedElement inherit from HTMLElement
The new event target implementation requires us to downcast an EventTarget to a FormAssociatedElement to check if the current Element EventTarget has a form owner to setup a with scope for the form owner. This also makes all form associated elements inherit from FormAssociatedElement where it was previously missing. https://html.spec.whatwg.org/#form-associated-element
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLInputElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLInputElement.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.h b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.h
index edd1d2c2d9..acf3577166 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.h
@@ -11,9 +11,7 @@
namespace Web::HTML {
-class HTMLInputElement final
- : public HTMLElement
- , public FormAssociatedElement {
+class HTMLInputElement final : public FormAssociatedElement {
public:
using WrapperType = Bindings::HTMLInputElementWrapper;
@@ -43,9 +41,6 @@ private:
virtual void inserted() override;
virtual void removed_from(Node*) override;
- // ^HTML::FormAssociatedElement
- virtual HTMLElement& form_associated_element_to_html_element() override { return *this; }
-
// ^DOM::EventTarget
virtual void did_receive_focus() override;