mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
LibWeb: Pop entire stack of open elements at the end of parsing
This commit is contained in:
parent
398692722b
commit
e11ae33c66
Notes:
sideshowbarker
2024-07-18 03:36:34 +09:00
Author: https://github.com/awesomekling
Commit: e11ae33c66
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ void HTMLDocumentParser::run(const AK::URL& url)
|
|||
|
||||
m_document->set_ready_state("interactive");
|
||||
|
||||
// 3. Pop all the nodes off the stack of open elements.
|
||||
while (!m_stack_of_open_elements.is_empty())
|
||||
m_stack_of_open_elements.pop();
|
||||
|
||||
auto scripts_to_execute_when_parsing_has_finished = m_document->take_scripts_to_execute_when_parsing_has_finished({});
|
||||
for (auto& script : scripts_to_execute_when_parsing_has_finished) {
|
||||
// FIXME: Spin the event loop until the script is ready to be parser executed and there's no style sheets blocking scripts.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue