mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +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:
parent
37ed1b28fa
commit
ab8432783e
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/awesomekling
Commit: ab8432783e
4 changed files with 33 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue