mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 20:15:00 +00:00
LibWeb: User getter and setter for Comment type HTMLTokens
This commit is contained in:
parent
f886aa15b8
commit
e8e9426b4f
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