2021-04-06 17:06:23 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-06 17:06:23 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/FlyString.h>
|
|
|
|
|
#include <LibWeb/DOM/CharacterData.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
|
|
|
|
|
class ProcessingInstruction final : public CharacterData {
|
|
|
|
|
public:
|
|
|
|
|
using WrapperType = Bindings::ProcessingInstructionWrapper;
|
|
|
|
|
|
2021-04-14 01:25:10 +02:00
|
|
|
ProcessingInstruction(Document&, const String& data, const String& target);
|
2022-03-14 13:21:51 -06:00
|
|
|
virtual ~ProcessingInstruction() override = default;
|
2021-04-06 17:06:23 +01:00
|
|
|
|
|
|
|
|
virtual FlyString node_name() const override { return m_target; }
|
|
|
|
|
|
|
|
|
|
const String& target() const { return m_target; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
String m_target;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|