HTMLOutputElement.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/FormAssociatedElement.h>
  9. namespace Web::HTML {
  10. class HTMLOutputElement final : public FormAssociatedElement {
  11. public:
  12. using WrapperType = Bindings::HTMLOutputElementWrapper;
  13. HTMLOutputElement(DOM::Document&, DOM::QualifiedName);
  14. virtual ~HTMLOutputElement() override;
  15. const String& type() const
  16. {
  17. static String output = "output";
  18. return output;
  19. }
  20. // ^FormAssociatedElement
  21. // https://html.spec.whatwg.org/multipage/forms.html#category-listed
  22. virtual bool is_listed() const override { return true; }
  23. // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
  24. virtual bool is_resettable() const override { return true; }
  25. // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
  26. virtual bool is_auto_capitalize_inheriting() const override { return true; }
  27. // ^HTMLElement
  28. // https://html.spec.whatwg.org/multipage/forms.html#category-label
  29. virtual bool is_labelable() const override { return true; }
  30. };
  31. }