Coverage Report

Created: 2026-10-28 07:05

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