2020-08-01 05:05:43 +03:00
|
|
|
/*
|
2021-04-28 23:46:44 +03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-08-01 05:05:43 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-01 05:05:43 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
class HTMLLabelElement final : public HTMLElement {
|
2022-08-28 14:42:07 +03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLLabelElement, HTMLElement);
|
2023-11-19 21:47:52 +03:00
|
|
|
JS_DECLARE_ALLOCATOR(HTMLLabelElement);
|
2020-08-01 05:05:43 +03:00
|
|
|
|
2022-08-28 14:42:07 +03:00
|
|
|
public:
|
2020-08-01 05:05:43 +03:00
|
|
|
virtual ~HTMLLabelElement() override;
|
2021-04-04 04:32:16 +03:00
|
|
|
|
2022-10-17 15:41:50 +03:00
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
2021-04-04 04:32:16 +03:00
|
|
|
|
2023-10-10 14:30:58 +03:00
|
|
|
Optional<String> for_() const { return attribute(HTML::AttributeNames::for_); }
|
2022-08-28 14:42:07 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
HTMLLabelElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 14:28:20 +03:00
|
|
|
|
2023-08-07 09:41:28 +03:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2020-08-01 05:05:43 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|