LibWeb: Fix accidental swallow of self-closing tag tokens

Instead of dropping self-closing tags on the floor, we now emit them
into the token stream. :^)
This commit is contained in:
Andreas Kling 2020-05-30 11:30:45 +02:00
parent fbd52047bb
commit 62885b5646
Notes: sideshowbarker 2024-07-19 05:57:38 +09:00

View file

@ -763,7 +763,7 @@ _StartOfFunction:
ON('>')
{
m_current_token.m_tag.self_closing = true;
SWITCH_TO(Data);
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
}
ON_EOF
{