1
Fork 0
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:
Andreas Kling 2019-11-28 07:40:40 +01:00
parent a42e477002
commit f0c94758f4

View file

@ -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;