mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 20:11:51 +00:00
LibHTML: CSS parser should accept "foo>bar", not just "foo > bar"
If we peek a combinator at the start of a simple selector, we're seeing the start of a new complex selector.
This commit is contained in:
parent
a42e477002
commit
f0c94758f4
Notes:
sideshowbarker
2024-07-19 11:02:36 +09:00
Author: https://github.com/awesomekling
Commit: f0c94758f4
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ public:
|
|||
if (consume_whitespace_or_comments())
|
||||
return {};
|
||||
|
||||
if (peek() == '{' || peek() == ',')
|
||||
if (peek() == '{' || peek() == ',' || is_combinator(peek()))
|
||||
return {};
|
||||
|
||||
Selector::SimpleSelector::Type type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue