CDATASection.h 578 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/RefCounted.h>
  8. #include <LibWeb/DOM/Text.h>
  9. namespace Web::DOM {
  10. class CDATASection final : public Text {
  11. WEB_PLATFORM_OBJECT(Text, CDATASection);
  12. public:
  13. virtual ~CDATASection() override;
  14. // ^Node
  15. virtual FlyString node_name() const override { return "#cdata-section"; }
  16. private:
  17. CDATASection(Document&, String const&);
  18. };
  19. template<>
  20. inline bool Node::fast_is<CDATASection>() const { return is_cdata_section(); }
  21. }