mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
LibWeb: Add namespaces to Universal and TagName selectors
This commit is contained in:
parent
6c2ed0f51b
commit
1858f06881
13 changed files with 245 additions and 49 deletions
|
@ -183,7 +183,7 @@ public:
|
|||
};
|
||||
|
||||
Type type;
|
||||
Variant<Empty, Attribute, PseudoClass, PseudoElement, Name> value {};
|
||||
Variant<Empty, Attribute, PseudoClass, PseudoElement, Name, QualifiedName> value {};
|
||||
|
||||
Attribute const& attribute() const { return value.get<Attribute>(); }
|
||||
Attribute& attribute() { return value.get<Attribute>(); }
|
||||
|
@ -196,6 +196,8 @@ public:
|
|||
FlyString& name() { return value.get<Name>().name; }
|
||||
FlyString const& lowercase_name() const { return value.get<Name>().lowercase_name; }
|
||||
FlyString& lowercase_name() { return value.get<Name>().lowercase_name; }
|
||||
QualifiedName const& qualified_name() const { return value.get<QualifiedName>(); }
|
||||
QualifiedName& qualified_name() { return value.get<QualifiedName>(); }
|
||||
|
||||
ErrorOr<String> serialize() const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue