mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +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
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ public:
|
||||||
if (consume_whitespace_or_comments())
|
if (consume_whitespace_or_comments())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
if (peek() == '{' || peek() == ',')
|
if (peek() == '{' || peek() == ',' || is_combinator(peek()))
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
Selector::SimpleSelector::Type type;
|
Selector::SimpleSelector::Type type;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue