2022-06-27 21:20:59 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2024-04-27 12:09:58 +12:00
|
|
|
#include <LibWeb/Bindings/CDATASectionPrototype.h>
|
2022-09-30 17:16:16 -06:00
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2022-06-27 21:20:59 +01:00
|
|
|
#include <LibWeb/DOM/CDATASection.h>
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(CDATASection);
|
2023-11-19 19:47:52 +01:00
|
|
|
|
2023-09-06 15:17:20 +12:00
|
|
|
CDATASection::CDATASection(Document& document, String const& data)
|
2022-06-27 21:20:59 +01:00
|
|
|
: Text(document, NodeType::CDATA_SECTION_NODE, data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
CDATASection::~CDATASection() = default;
|
2022-06-27 21:20:59 +01:00
|
|
|
|
2023-08-07 08:41:28 +02:00
|
|
|
void CDATASection::initialize(JS::Realm& realm)
|
2023-01-10 06:28:20 -05:00
|
|
|
{
|
2024-03-16 13:13:08 +01:00
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(CDATASection);
|
2025-04-20 16:22:57 +02:00
|
|
|
Base::initialize(realm);
|
2023-01-10 06:28:20 -05:00
|
|
|
}
|
|
|
|
|
2022-06-27 21:20:59 +01:00
|
|
|
}
|