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/DOM/Comment.h
Line
Count
Source
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/DOM/CharacterData.h>
10
11
namespace Web::DOM {
12
13
class Comment final : public CharacterData {
14
    WEB_PLATFORM_OBJECT(Comment, CharacterData);
15
    JS_DECLARE_ALLOCATOR(Comment);
16
17
public:
18
    static WebIDL::ExceptionOr<JS::NonnullGCPtr<Comment>> construct_impl(JS::Realm&, String const& data);
19
    virtual ~Comment() override = default;
20
21
0
    virtual FlyString node_name() const override { return "#comment"_fly_string; }
22
23
private:
24
    Comment(Document&, String const&);
25
26
    virtual void initialize(JS::Realm&) override;
27
};
28
29
template<>
30
0
inline bool Node::fast_is<Comment>() const { return is_comment(); }
31
32
}