HTMLTextAreaElement.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 HTMLTextAreaElement final : public FormAssociatedElement {
  11. public:
  12. using WrapperType = Bindings::HTMLTextAreaElementWrapper;
  13. HTMLTextAreaElement(DOM::Document&, DOM::QualifiedName);
  14. virtual ~HTMLTextAreaElement() override;
  15. const String& type() const
  16. {
  17. static String textarea = "textarea";
  18. return textarea;
  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-submit
  24. virtual bool is_submittable() const override { return true; }
  25. // https://html.spec.whatwg.org/multipage/forms.html#category-reset
  26. virtual bool is_resettable() const override { return true; }
  27. // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
  28. virtual bool is_auto_capitalize_inheriting() const override { return true; }
  29. // ^HTMLElement
  30. // https://html.spec.whatwg.org/multipage/forms.html#category-label
  31. virtual bool is_labelable() const override { return true; }
  32. };
  33. }