HTMLHRElement.h 764 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/ARIA/Roles.h>
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. namespace Web::HTML {
  10. class HTMLHRElement final : public HTMLElement {
  11. WEB_PLATFORM_OBJECT(HTMLHRElement, HTMLElement);
  12. GC_DECLARE_ALLOCATOR(HTMLHRElement);
  13. public:
  14. virtual ~HTMLHRElement() override;
  15. // https://www.w3.org/TR/html-aria/#el-hr
  16. virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::separator; }
  17. private:
  18. HTMLHRElement(DOM::Document&, DOM::QualifiedName);
  19. virtual void initialize(JS::Realm&) override;
  20. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  21. };
  22. }