Coverage Report

Created: 2026-02-14 08:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/HTML/HTMLDivElement.h
Line
Count
Source
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 HTMLDivElement : public HTMLElement {
15
    WEB_PLATFORM_OBJECT(HTMLDivElement, HTMLElement);
16
    JS_DECLARE_ALLOCATOR(HTMLDivElement);
17
18
public:
19
    virtual ~HTMLDivElement() override;
20
21
    // https://www.w3.org/TR/html-aria/#el-div
22
0
    virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; }
23
24
protected:
25
    HTMLDivElement(DOM::Document&, DOM::QualifiedName);
26
27
private:
28
    virtual void initialize(JS::Realm&) override;
29
    virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
30
};
31
32
}