mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +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())
|
||||
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