LibWeb: Fix a TODO in the adoption agency algorithm

There's still a much bigger one at the end of the function though. :^)
This commit is contained in:
Linus Groh 2021-04-13 21:27:35 +02:00 committed by Andreas Kling
commit e4b3591ac4
Notes: sideshowbarker 2024-07-18 20:24:45 +09:00

View file

@ -976,9 +976,8 @@ HTMLDocumentParser::AdoptionAgencyAlgorithmOutcome HTMLDocumentParser::run_the_a
if (!m_stack_of_open_elements.contains(*formatting_element)) { if (!m_stack_of_open_elements.contains(*formatting_element)) {
PARSE_ERROR(); PARSE_ERROR();
// FIXME: If formatting element is not in the stack of open elements, m_list_of_active_formatting_elements.remove(*formatting_element);
// then this is a parse error; remove the element from the list, and return. return AdoptionAgencyAlgorithmOutcome::DoNothing;
TODO();
} }
if (!m_stack_of_open_elements.has_in_scope(*formatting_element)) { if (!m_stack_of_open_elements.has_in_scope(*formatting_element)) {