CDATASection.h 578 B

12345678910111213141516171819202122232425262728
  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. public:
  12. using WrapperType = Bindings::CDATASectionWrapper;
  13. CDATASection(Document&, String const&);
  14. virtual ~CDATASection() override;
  15. // ^Node
  16. virtual FlyString node_name() const override { return "#cdata-section"; }
  17. };
  18. template<>
  19. inline bool Node::fast_is<CDATASection>() const { return is_cdata_section(); }
  20. }