mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
ID selectors need to be serialized as identifiers in the spec, but other hash-values do not. This was causing hex colors that start with a number, like `#54a3ff`, to serialize as `#\35 4a3ff`, which is silly and unnecessary. Selector serialization is done elsewhere, so this case in Token is probably also unnecessary, but there might be situations I haven't thought of where serializing an ID does need to happen while it's still a Token.