I just came across a situation where product names are automatically inserted into my HTML as class names, and one of these product names has an accented letter. It looks like this:
<div class="español">Hola</div>
If I add a CSS declaration with this class, for example:
.español {background:yellow;}
Will this cause problems? This seems to work so far, but I'm not sure if it is fully cross-browser compatible.
Also, would it be different if it were an identifier instead of a class? Until now, this also works, but again I’m not sure that it will stay everywhere.
css
andi
source share