diff --git a/Libraries/LibWeb/CSS/Parser/SelectorParsing.cpp b/Libraries/LibWeb/CSS/Parser/SelectorParsing.cpp index c9bfebbcac8..cc8e414da24 100644 --- a/Libraries/LibWeb/CSS/Parser/SelectorParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/SelectorParsing.cpp @@ -831,7 +831,7 @@ Parser::ParseErrorOr> Parser::parse_simple_se tokens.reconsume_current_input_token(); return Optional {}; 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> 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; }