mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 09:01:53 +00:00
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:
parent
3914bf05fb
commit
d9113e45f0
Notes:
github-actions[bot]
2025-05-16 15:43:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: d9113e45f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4756
Reviewed-by: https://github.com/shannonbooth
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue