1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 13:35:00 +00:00
serenity/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.h
Luke Wilde 3bb5c6207f 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
2022-02-08 17:47:44 +00:00

27 lines
530 B
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/HTML/FormAssociatedElement.h>
namespace Web::HTML {
class HTMLOutputElement final : public FormAssociatedElement {
public:
using WrapperType = Bindings::HTMLOutputElementWrapper;
HTMLOutputElement(DOM::Document&, QualifiedName);
virtual ~HTMLOutputElement() override;
const String& type() const
{
static String output = "output";
return output;
}
};
}