2021-04-06 13:06:23 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-06 13:06:23 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/DOM/ProcessingInstruction.h>
|
|
|
|
|
#include <LibWeb/Layout/TextNode.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
|
2022-04-01 14:58:27 -03:00
|
|
|
ProcessingInstruction::ProcessingInstruction(Document& document, String const& data, String const& target)
|
2021-04-06 13:06:23 -03:00
|
|
|
: CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
|
|
|
|
|
, m_target(target)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|