1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibWeb: Use the serialize_a_{identifier,string} algorithms for selectors

Also fixed that serializing an attribute selector never output the
value.
This commit is contained in:
Sam Atkins 2021-10-15 12:18:09 +01:00 committed by Linus Groh
parent d775212f19
commit e72286c0ec
2 changed files with 10 additions and 11 deletions

View file

@ -37,7 +37,7 @@ public:
int step_size { 0 }; // "A"
int offset = { 0 }; // "B"
String to_string() const
String serialize() const
{
return String::formatted("{}n{:+}", step_size, offset);
}