mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 18:11:52 +00:00
LibWeb: Reject CSS values with unprocessed tokens / extra semicolons
This commit is contained in:
parent
b99f4872d1
commit
832bb978f5
Notes:
github-actions[bot]
2025-05-02 10:11:03 +00:00
Author: https://github.com/bplaat
Commit: 832bb978f5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4543
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
2 changed files with 4 additions and 5 deletions
|
@ -370,7 +370,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
|
|||
|
||||
if (token.is(Token::Type::Semicolon)) {
|
||||
unprocessed_tokens.reconsume_current_input_token();
|
||||
break;
|
||||
return ParseError::SyntaxError;
|
||||
}
|
||||
|
||||
if (property_id != PropertyID::Custom) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue