From bf759ce5e3501b8911b3a1fd8ba05037504b489f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 13 Dec 2022 13:24:27 +0100 Subject: [PATCH] LibWeb: Make sure ProcessingInstruction objects have the right prototype --- Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp index dd04806c54..54e5126456 100644 --- a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp +++ b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include +#include #include #include @@ -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")); } }