LibWeb: Don't allow trailing commas in selector lists

comma-separated list != #-multiplier
This commit is contained in:
Gingeh 2024-11-22 19:48:50 +11:00 committed by Andreas Kling
parent 8965698ce7
commit bb5678a175
Notes: github-actions[bot] 2024-11-23 08:51:44 +00:00
8 changed files with 3515 additions and 6 deletions

View file

@ -768,6 +768,8 @@ Vector<ComponentValue> Parser::consume_a_list_of_component_values(TokenStream<T>
}
}
}
template Vector<ComponentValue> Parser::consume_a_list_of_component_values(TokenStream<ComponentValue>& input, Optional<Token::Type> stop_token, Nested nested);
template Vector<ComponentValue> Parser::consume_a_list_of_component_values(TokenStream<Token>& input, Optional<Token::Type> stop_token, Nested nested);
// https://drafts.csswg.org/css-syntax/#consume-simple-block
template<typename T>