mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:25:08 +00:00
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:
parent
847072c2b1
commit
2a266db05b
3 changed files with 9 additions and 1 deletions
|
@ -18,6 +18,7 @@ public:
|
|||
enum class Relation {
|
||||
None,
|
||||
ImmediateChild,
|
||||
Descendant,
|
||||
};
|
||||
Relation relation { Relation::None };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue