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