LibWeb/CSS: Discard trailing whitespace inside attribute selectors

This gets us 84 more subtests, so everything in this syntax test passes.
This commit is contained in:
Sam Atkins 2025-05-15 17:24:30 +01:00
parent 3914bf05fb
commit d9113e45f0
Notes: github-actions[bot] 2025-05-16 15:43:16 +00:00
2 changed files with 2 additions and 0 deletions

View file

@ -383,6 +383,8 @@ Parser::ParseErrorOr<Selector::SimpleSelector> Parser::parse_attribute_simple_se
}
}
attribute_tokens.discard_whitespace();
if (attribute_tokens.has_next_token()) {
dbgln_if(CSS_PARSER_DEBUG, "Was not expecting anything else inside attribute selector.");
return ParseError::SyntaxError;