summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
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/HTMLImageElement.cpp
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/HTMLImageElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
index d4b7463b71..6867740fe9 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
@@ -17,7 +17,7 @@
namespace Web::HTML {
HTMLImageElement::HTMLImageElement(DOM::Document& document, QualifiedName qualified_name)
- : HTMLElement(document, move(qualified_name))
+ : FormAssociatedElement(document, move(qualified_name))
, m_image_loader(*this)
{
m_image_loader.on_load = [this] {