diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-10-14 16:18:49 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-08 17:47:44 +0000 |
commit | 3bb5c6207fbdbe80041bd603882063165b440e00 (patch) | |
tree | 659a79feb7e22a8fb1df84bcf30a93f6289cd01f /Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h | |
parent | f71f404e0c56497bdf1b65a4a69b45de51e8e42c (diff) | |
download | serenity-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/HTMLButtonElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h index 91e95d8b59..840553325e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h @@ -6,11 +6,11 @@ #pragma once -#include <LibWeb/HTML/HTMLElement.h> +#include <LibWeb/HTML/FormAssociatedElement.h> namespace Web::HTML { -class HTMLButtonElement final : public HTMLElement { +class HTMLButtonElement final : public FormAssociatedElement { public: using WrapperType = Bindings::HTMLButtonElementWrapper; |