mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibHTML: Implement the universal selector ("*")
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user