mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +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
|
@ -191,10 +191,6 @@ void HTMLParser::run(HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point
|
|||
m_stop_parsing = false;
|
||||
|
||||
for (;;) {
|
||||
// FIXME: Find a better way to say that we come from Document::close() and want to process EOF.
|
||||
if (!m_tokenizer.is_eof_inserted() && m_tokenizer.is_insertion_point_reached())
|
||||
break;
|
||||
|
||||
auto optional_token = m_tokenizer.next_token(stop_at_insertion_point);
|
||||
if (!optional_token.has_value())
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue