HTMLButtonElement.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/FormAssociatedElement.h>
  8. namespace Web::HTML {
  9. class HTMLButtonElement final : public FormAssociatedElement {
  10. public:
  11. using WrapperType = Bindings::HTMLButtonElementWrapper;
  12. HTMLButtonElement(DOM::Document&, DOM::QualifiedName);
  13. virtual ~HTMLButtonElement() override;
  14. // ^FormAssociatedElement
  15. // https://html.spec.whatwg.org/multipage/forms.html#category-listed
  16. virtual bool is_listed() const override { return true; }
  17. // https://html.spec.whatwg.org/multipage/forms.html#category-submit
  18. virtual bool is_submittable() const override { return true; }
  19. // https://html.spec.whatwg.org/multipage/forms.html#category-autocapitalize
  20. virtual bool is_auto_capitalize_inheriting() const override { return true; }
  21. // ^HTMLElement
  22. // https://html.spec.whatwg.org/multipage/forms.html#category-label
  23. virtual bool is_labelable() const override { return true; }
  24. };
  25. }