mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/CSS: Make debug messages in parse_simple_selector() more useful
This commit is contained in:
parent
7de5032e73
commit
ffdf0268dd
Notes:
github-actions[bot]
2025-05-16 22:31:41 +00:00
Author: https://github.com/AtkinsSJ
Commit: ffdf0268dd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4780
1 changed files with 2 additions and 2 deletions
|
@ -831,7 +831,7 @@ Parser::ParseErrorOr<Optional<Selector::SimpleSelector>> Parser::parse_simple_se
|
|||
tokens.reconsume_current_input_token();
|
||||
return Optional<Selector::SimpleSelector> {};
|
||||
default:
|
||||
dbgln_if(CSS_PARSER_DEBUG, "!!! Invalid simple selector!");
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Unrecognized delimiter in selector: '{}'", first_value.token().to_string());
|
||||
return ParseError::SyntaxError;
|
||||
}
|
||||
}
|
||||
|
@ -853,7 +853,7 @@ Parser::ParseErrorOr<Optional<Selector::SimpleSelector>> Parser::parse_simple_se
|
|||
if (first_value.is(Token::Type::Colon))
|
||||
return TRY(parse_pseudo_simple_selector(tokens));
|
||||
|
||||
dbgln_if(CSS_PARSER_DEBUG, "!!! Invalid simple selector!");
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Invalid simple selector: {}", first_value.to_debug_string());
|
||||
return ParseError::SyntaxError;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue