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/HTMLInputElement.cpp | |
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/HTMLInputElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 77005f55b2..2e548cfdd2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -20,7 +20,7 @@ namespace Web::HTML { HTMLInputElement::HTMLInputElement(DOM::Document& document, QualifiedName qualified_name) - : HTMLElement(document, move(qualified_name)) + : FormAssociatedElement(document, move(qualified_name)) { } |