mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 15:58:47 +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
|
@ -406,7 +406,7 @@ _StartOfFunction:
|
|||
{
|
||||
ON('>')
|
||||
{
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
|
||||
}
|
||||
ON_EOF
|
||||
|
@ -1392,7 +1392,7 @@ _StartOfFunction:
|
|||
ON_EOF
|
||||
{
|
||||
log_parse_error();
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
EMIT_CURRENT_TOKEN;
|
||||
EMIT_EOF;
|
||||
}
|
||||
|
@ -1408,7 +1408,7 @@ _StartOfFunction:
|
|||
{
|
||||
ON('>')
|
||||
{
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
|
||||
}
|
||||
ON('!')
|
||||
|
@ -1423,7 +1423,7 @@ _StartOfFunction:
|
|||
ON_EOF
|
||||
{
|
||||
log_parse_error();
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
EMIT_CURRENT_TOKEN;
|
||||
EMIT_EOF;
|
||||
}
|
||||
|
@ -1445,13 +1445,13 @@ _StartOfFunction:
|
|||
ON('>')
|
||||
{
|
||||
log_parse_error();
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
|
||||
}
|
||||
ON_EOF
|
||||
{
|
||||
log_parse_error();
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
EMIT_CURRENT_TOKEN;
|
||||
EMIT_EOF;
|
||||
}
|
||||
|
@ -1472,7 +1472,7 @@ _StartOfFunction:
|
|||
ON_EOF
|
||||
{
|
||||
log_parse_error();
|
||||
m_current_token.m_comment_or_character.data = consume_current_builder();
|
||||
m_current_token.set_comment(consume_current_builder());
|
||||
EMIT_CURRENT_TOKEN;
|
||||
EMIT_EOF;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue