mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibWeb: Reset the "stop parsing" flag when entering HTML parser
Otherwise we'll always bail after processing one token, which is not what we want.
This commit is contained in:
parent
7309f2a6f9
commit
1d554f97de
Notes:
github-actions[bot]
2024-11-23 18:20:27 +00:00
Author: https://github.com/awesomekling
Commit: 1d554f97de
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2531
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ void HTMLParser::visit_edges(Cell::Visitor& visitor)
|
|||
|
||||
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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue