mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:15:08 +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
|
@ -224,6 +224,12 @@ public:
|
|||
consume_whitespace_or_comments();
|
||||
}
|
||||
|
||||
if (peek() == '*') {
|
||||
type = Selector::Component::Type::Universal;
|
||||
consume_one();
|
||||
return Selector::Component { type, Selector::Component::PseudoClass::None, relation, String() };
|
||||
}
|
||||
|
||||
if (peek() == '.') {
|
||||
type = Selector::Component::Type::Class;
|
||||
consume_one();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue