1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibWeb: Make sure ProcessingInstruction objects have the right prototype

This commit is contained in:
Andreas Kling 2022-12-13 13:24:27 +01:00
parent de2c302cdb
commit bf759ce5e3

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/ProcessingInstruction.h>
#include <LibWeb/Layout/TextNode.h>
@ -13,6 +15,7 @@ ProcessingInstruction::ProcessingInstruction(Document& document, DeprecatedStrin
: CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
, m_target(target)
{
set_prototype(&Bindings::cached_web_prototype(document.realm(), "ProcessingInstruction"));
}
}