
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
27 lines
544 B
C++
27 lines
544 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 HTMLTextAreaElement final : public FormAssociatedElement {
|
|
public:
|
|
using WrapperType = Bindings::HTMLTextAreaElementWrapper;
|
|
|
|
HTMLTextAreaElement(DOM::Document&, QualifiedName);
|
|
virtual ~HTMLTextAreaElement() override;
|
|
|
|
const String& type() const
|
|
{
|
|
static String textarea = "textarea";
|
|
return textarea;
|
|
}
|
|
};
|
|
|
|
}
|