HTMLLabelElement.h 660 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLLabelElement final : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLLabelElement, HTMLElement);
  11. public:
  12. virtual ~HTMLLabelElement() override;
  13. virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  14. DeprecatedString for_() const { return deprecated_attribute(HTML::AttributeNames::for_); }
  15. private:
  16. HTMLLabelElement(DOM::Document&, DOM::QualifiedName);
  17. virtual void initialize(JS::Realm&) override;
  18. };
  19. }