mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00
LibWeb: Support more advanced selectors in document.querySelectorAll()
I made some mistakes in the selector parsing code. It's now able to parse selectors composed of multiple complex selectors, instead of just one complex selector.
This commit is contained in:
parent
c1c56b1131
commit
06aec9667e
4 changed files with 21 additions and 17 deletions
|
@ -180,6 +180,7 @@ void dump_selector(const Selector& selector)
|
|||
const char* relation_description = "";
|
||||
switch (complex_selector.relation) {
|
||||
case Selector::ComplexSelector::Relation::None:
|
||||
relation_description = "None";
|
||||
break;
|
||||
case Selector::ComplexSelector::Relation::ImmediateChild:
|
||||
relation_description = "ImmediateChild";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue