mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +00:00
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:
parent
cc7c86fdf4
commit
e4b3591ac4
1 changed files with 2 additions and 3 deletions
|
@ -976,9 +976,8 @@ HTMLDocumentParser::AdoptionAgencyAlgorithmOutcome HTMLDocumentParser::run_the_a
|
|||
|
||||
if (!m_stack_of_open_elements.contains(*formatting_element)) {
|
||||
PARSE_ERROR();
|
||||
// FIXME: If formatting element is not in the stack of open elements,
|
||||
// then this is a parse error; remove the element from the list, and return.
|
||||
TODO();
|
||||
m_list_of_active_formatting_elements.remove(*formatting_element);
|
||||
return AdoptionAgencyAlgorithmOutcome::DoNothing;
|
||||
}
|
||||
|
||||
if (!m_stack_of_open_elements.has_in_scope(*formatting_element)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue