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
Notes: sideshowbarker 2024-07-17 20:33:50 +09:00
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) {