I looked at the Prototype.js code and I saw there (in the Sizzle part):

My question is about this line:
CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
\. for a point, next (unoccupied group: words, range and - ) OR ( \. ). (he actually says \\. , but the first one is just for shielding, so he \. ).
A?
What \. ?
I checked /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/.test('.aa\.') And it returns true .
But what is .aa\. ? obviously .aa class, but if \ is a valid char, why is it not in the [..] section?
What am I missing?
source share