/* * Copyright (c) 2022, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::DOM { class CDATASection final : public Text { WEB_PLATFORM_OBJECT(CDATASection, Text); public: virtual ~CDATASection() override; // ^Node virtual DeprecatedFlyString node_name() const override { return "#cdata-section"; } private: CDATASection(Document&, DeprecatedString const&); virtual void initialize(JS::Realm&) override; }; template<> inline bool Node::fast_is() const { return is_cdata_section(); } }