mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibWeb: Don't end parsing after reaching the insertion point
This commit is contained in:
parent
e176871fdf
commit
0adf261c32
Notes:
github-actions[bot]
2024-11-26 22:51:12 +00:00
Author: https://github.com/Gingeh
Commit: 0adf261c32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2584
6 changed files with 128 additions and 9 deletions
|
@ -708,14 +708,14 @@ WebIDL::ExceptionOr<void> Document::close()
|
|||
if (!m_parser)
|
||||
return {};
|
||||
|
||||
// FIXME: 4. Insert an explicit "EOF" character at the end of the parser's input stream.
|
||||
// 4. Insert an explicit "EOF" character at the end of the parser's input stream.
|
||||
m_parser->tokenizer().insert_eof();
|
||||
|
||||
// 5. If there is a pending parsing-blocking script, then return.
|
||||
if (pending_parsing_blocking_script())
|
||||
return {};
|
||||
|
||||
// FIXME: 6. Run the tokenizer, processing resulting tokens as they are emitted, and stopping when the tokenizer reaches the explicit "EOF" character or spins the event loop.
|
||||
// 6. Run the tokenizer, processing resulting tokens as they are emitted, and stopping when the tokenizer reaches the explicit "EOF" character or spins the event loop.
|
||||
m_parser->run();
|
||||
|
||||
// AD-HOC: This ensures that a load event is fired if the node navigable's container is an iframe.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue