Coverage Report

Created: 2025-11-16 07:46

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