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