2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-10-12 18:26:47 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-03-22 15:10:43 -03:00
|
|
|
#include <AK/FlyString.h>
|
2020-03-07 06:32:51 -03:00
|
|
|
#include <LibWeb/DOM/CharacterData.h>
|
2019-10-12 18:26:47 -03:00
|
|
|
|
2020-07-26 14:37:56 -03:00
|
|
|
namespace Web::DOM {
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2019-10-12 18:26:47 -03:00
|
|
|
class Comment final : public CharacterData {
|
|
|
|
|
public:
|
2020-08-17 15:14:30 -03:00
|
|
|
using WrapperType = Bindings::CommentWrapper;
|
|
|
|
|
|
2019-10-12 18:26:47 -03:00
|
|
|
explicit Comment(Document&, const String&);
|
|
|
|
|
virtual ~Comment() override;
|
|
|
|
|
|
2020-06-16 14:09:14 -03:00
|
|
|
virtual FlyString node_name() const override { return "#comment"; }
|
2021-09-05 21:07:11 -03:00
|
|
|
|
|
|
|
|
static NonnullRefPtr<Comment> create_with_global_object(Bindings::WindowObject& window, String const& data);
|
2019-10-12 18:26:47 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|