diff options
author | Andreas Kling <kling@serenityos.org> | 2022-12-13 13:24:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-14 15:21:48 +0100 |
commit | bf759ce5e3501b8911b3a1fd8ba05037504b489f (patch) | |
tree | 2261250c9a2954f4d8da3e03a5cb28fe1ab73f82 /Userland/Libraries/LibWeb/DOM | |
parent | de2c302cdb80a3322723ff21d64b75129c00236d (diff) | |
download | serenity-bf759ce5e3501b8911b3a1fd8ba05037504b489f.zip |
LibWeb: Make sure ProcessingInstruction objects have the right prototype
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <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")); } } |