<div class='-foo'>foo</div>
<div title='['>bar</div>
<style>
.-foo {
color: red;
}
[title='['] {
color: blue;
</style>