summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp
blob: 577eba2b2cea0f794eff3f22c933d0d25f3f9adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/DOM/ProcessingInstruction.h>
#include <LibWeb/Layout/TextNode.h>

namespace Web::DOM {

ProcessingInstruction::ProcessingInstruction(Document& document, const String& data, const String& target)
    : CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
    , m_target(target)
{
}

ProcessingInstruction::~ProcessingInstruction()
{
}

}