Closed
Description
Symfony version(s) affected
all
Description
The tokenizer properly recognizes escape sequences as being part of a CSS identifier. But it keeps the escape sequence in the token value, which is then kept in the XPath.
How to reproduce
$converter = new \Symfony\Component\CssSelector\CssSelectorConverter();
dump($converter->toXPath('#foo\.bar'));
Possible Solution
To me, the unescaping should probably be done at the tokenizer level
Additional Context
No response