mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
LibWeb: Port ProcessingInstruction from ByteString
This commit is contained in:
parent
7ce3e113fa
commit
562e0d710c
4 changed files with 8 additions and 8 deletions
|
@ -13,8 +13,8 @@ namespace Web::DOM {
|
|||
|
||||
JS_DEFINE_ALLOCATOR(ProcessingInstruction);
|
||||
|
||||
ProcessingInstruction::ProcessingInstruction(Document& document, ByteString const& data, ByteString const& target)
|
||||
: CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, MUST(String::from_byte_string(data)))
|
||||
ProcessingInstruction::ProcessingInstruction(Document& document, String const& data, String const& target)
|
||||
: CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
|
||||
, m_target(target)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue