mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-03 04:42:19 +02:00
As noted, this is hacky because the parser wasn't written to allow
parsing an individual component of a selector. (Fox example, the
convenient-sounding `parse_pseudo_simple_selector()` assumes the first
colon has already been consumed...) So until that changes, this parses
the input as an entire selector-list, and then throws it away if it's
not a single pseudo-element selector.
It's only temporary though, I promise. 😅
(cherry picked from commit dae9c9be40e069989e0079745b7077dd9bab1c26)