2022-06-27 21:20:59 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/DOM/CDATASection.h>
|
2022-08-28 13:42:07 +02:00
|
|
|
#include <LibWeb/HTML/Window.h>
|
2022-06-27 21:20:59 +01:00
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
|
|
|
CDATASection::CDATASection(Document& document, String const& data)
|
|
|
|
: Text(document, NodeType::CDATA_SECTION_NODE, data)
|
|
|
|
{
|
2022-09-03 18:43:24 +02:00
|
|
|
set_prototype(&window().cached_web_prototype("CDATASection"));
|
2022-06-27 21:20:59 +01:00
|
|
|
}
|
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
CDATASection::~CDATASection() = default;
|
2022-06-27 21:20:59 +01:00
|
|
|
|
|
|
|
}
|