mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:35:09 +00:00
LibHTML: Implement the universal selector ("*")
This commit is contained in:
parent
516708aab2
commit
56dad2272c
4 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,8 @@ bool matches(const Selector::Component& component, const Element& element)
|
|||
}
|
||||
|
||||
switch (component.type) {
|
||||
case Selector::Component::Type::Universal:
|
||||
return true;
|
||||
case Selector::Component::Type::Id:
|
||||
return component.value == element.attribute("id");
|
||||
case Selector::Component::Type::Class:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue