Coverage Report

Created: 2026-02-16 07:47

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2021, the SerenityOS developers.
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Bindings/Intrinsics.h>
8
#include <LibWeb/Bindings/ProcessingInstructionPrototype.h>
9
#include <LibWeb/DOM/Document.h>
10
#include <LibWeb/DOM/ProcessingInstruction.h>
11
#include <LibWeb/Layout/TextNode.h>
12
13
namespace Web::DOM {
14
15
JS_DEFINE_ALLOCATOR(ProcessingInstruction);
16
17
ProcessingInstruction::ProcessingInstruction(Document& document, String const& data, String const& target)
18
0
    : CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
19
0
    , m_target(target)
20
0
{
21
0
}
22
23
void ProcessingInstruction::initialize(JS::Realm& realm)
24
0
{
25
0
    Base::initialize(realm);
26
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(ProcessingInstruction);
27
0
}
28
29
}