mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
LibWeb: Don't infer descendant combinator for <compound-selector>
This fixes an issue where :host(foo) would parse as if "foo" was the on the right side of a descendant combinator. Not testable yet, but will be in the next commit.
This commit is contained in:
parent
758f4887bc
commit
274c46a3c9
Notes:
github-actions[bot]
2024-07-23 16:04:44 +00:00
Author: https://github.com/awesomekling
Commit: 274c46a3c9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/790
Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 4 additions and 1 deletions
|
@ -506,7 +506,10 @@ Parser::ParseErrorOr<Selector::SimpleSelector> Parser::parse_pseudo_simple_selec
|
|||
return ParseError::SyntaxError;
|
||||
}
|
||||
|
||||
Vector compound_selectors { compound_selector_or_error.release_value().release_value() };
|
||||
auto compound_selector = compound_selector_or_error.release_value().release_value();
|
||||
compound_selector.combinator = Selector::Combinator::None;
|
||||
|
||||
Vector compound_selectors { move(compound_selector) };
|
||||
auto selector = Selector::create(move(compound_selectors));
|
||||
|
||||
return Selector::SimpleSelector {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue