JOSM classes

In JOSM the following syntaxes do the exact same thing:
```css
set .foo;
set foo;
```

How to support it?