mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: User getter and setter for Comment type HTMLTokens
This commit is contained in:
parent
f886aa15b8
commit
e8e9426b4f
Notes:
sideshowbarker
2024-07-18 08:53:06 +09:00
Author: https://github.com/MaxWipfli
Commit: e8e9426b4f
Pull-request: https://github.com/SerenityOS/serenity/pull/8784
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
3 changed files with 25 additions and 15 deletions
|
@ -97,6 +97,18 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
String const& comment() const
|
||||
{
|
||||
VERIFY(is_comment());
|
||||
return m_comment_or_character.data;
|
||||
}
|
||||
|
||||
void set_comment(String comment)
|
||||
{
|
||||
VERIFY(is_comment());
|
||||
m_comment_or_character.data = move(comment);
|
||||
}
|
||||
|
||||
String tag_name() const
|
||||
{
|
||||
VERIFY(is_start_tag() || is_end_tag());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue