1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 15:42:12 +00:00

LibWeb: Implement aborting the HTML parser

This is roughly on-spec, although I had to invent a simple "aborted"
state for the tokenizer.
This commit is contained in:
Andreas Kling 2022-09-20 21:08:14 +02:00
parent 37ed1b28fa
commit ab8432783e
4 changed files with 33 additions and 0 deletions

View file

@ -257,6 +257,9 @@ _StartOfFunction:
if (!m_queued_tokens.is_empty())
return m_queued_tokens.dequeue();
if (m_aborted)
return {};
for (;;) {
auto current_input_character = next_code_point();
switch (m_state) {