ProcessingInstruction.cpp 419 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2021, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/DOM/ProcessingInstruction.h>
  7. #include <LibWeb/Layout/TextNode.h>
  8. namespace Web::DOM {
  9. ProcessingInstruction::ProcessingInstruction(Document& document, const String& data, const String& target)
  10. : CharacterData(document, NodeType::PROCESSING_INSTRUCTION_NODE, data)
  11. , m_target(target)
  12. {
  13. }
  14. }