1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 10:57:35 +00:00

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

View file

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