/src/serenity/Userland/Libraries/LibWeb/HTML/HTMLHRElement.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #include <LibWeb/ARIA/Roles.h> |
10 | | #include <LibWeb/HTML/HTMLElement.h> |
11 | | |
12 | | namespace Web::HTML { |
13 | | |
14 | | class HTMLHRElement final : public HTMLElement { |
15 | | WEB_PLATFORM_OBJECT(HTMLHRElement, HTMLElement); |
16 | | JS_DECLARE_ALLOCATOR(HTMLHRElement); |
17 | | |
18 | | public: |
19 | | virtual ~HTMLHRElement() override; |
20 | | |
21 | | // https://www.w3.org/TR/html-aria/#el-hr |
22 | 0 | virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::separator; } |
23 | | |
24 | | private: |
25 | | HTMLHRElement(DOM::Document&, DOM::QualifiedName); |
26 | | |
27 | | virtual void initialize(JS::Realm&) override; |
28 | | |
29 | | virtual void apply_presentational_hints(CSS::StyleProperties&) const override; |
30 | | }; |
31 | | |
32 | | } |