summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.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/HTMLFieldSetElement.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/HTMLFieldSetElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.h b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
index 0788bf2e03..9e645510a3 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
@@ -6,11 +6,11 @@
#pragma once
-#include <LibWeb/HTML/HTMLElement.h>
+#include <LibWeb/HTML/FormAssociatedElement.h>
namespace Web::HTML {
-class HTMLFieldSetElement final : public HTMLElement {
+class HTMLFieldSetElement final : public FormAssociatedElement {
public:
using WrapperType = Bindings::HTMLFieldSetElementWrapper;