LibHTML: Parse descendant relations in CSS selectors

"div p" now generates a Selector with two components where the second
component is a type=TagName, value="p", relation=Descendant.

We still don't handle matching of these, but at least we parse them.
This commit is contained in:
Andreas Kling 2019-10-06 11:05:57 +02:00
commit 2a266db05b
Notes: sideshowbarker 2024-07-19 11:48:09 +09:00
3 changed files with 9 additions and 1 deletions

View file

@ -18,6 +18,7 @@ public:
enum class Relation {
None,
ImmediateChild,
Descendant,
};
Relation relation { Relation::None };