Coverage Report

Created: 2025-09-05 06:52

/src/serenity/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2020, the SerenityOS developers.
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 HTMLParagraphElement final : public HTMLElement {
15
    WEB_PLATFORM_OBJECT(HTMLParagraphElement, HTMLElement);
16
    JS_DECLARE_ALLOCATOR(HTMLParagraphElement);
17
18
public:
19
    virtual ~HTMLParagraphElement() override;
20
21
    virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
22
23
    // https://www.w3.org/TR/html-aria/#el-p
24
0
    virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::paragraph; }
25
26
private:
27
    HTMLParagraphElement(DOM::Document&, DOM::QualifiedName);
28
29
    virtual void initialize(JS::Realm&) override;
30
};
31
32
}