Serenity Operating System
at master 29 lines 672 B view raw
1/* 2 * Copyright (c) 2020, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <LibWeb/HTML/HTMLElement.h> 10 11namespace Web::HTML { 12 13class HTMLLabelElement final : public HTMLElement { 14 WEB_PLATFORM_OBJECT(HTMLLabelElement, HTMLElement); 15 16public: 17 virtual ~HTMLLabelElement() override; 18 19 virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override; 20 21 DeprecatedString for_() const { return attribute(HTML::AttributeNames::for_); } 22 23private: 24 HTMLLabelElement(DOM::Document&, DOM::QualifiedName); 25 26 virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override; 27}; 28 29}