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:
Andreas Kling 2024-11-23 16:28:35 +01:00 committed by Andreas Kling
parent 7309f2a6f9
commit 1d554f97de
Notes: github-actions[bot] 2024-11-23 18:20:27 +00:00

View file

@ -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())