24 ways to impress your friends

Jump to menu

Vote up?

Gunnar Bittersmann

‘*=’ considered harmful, as ‘[class*=reed]’ not only matches all elements of the class “reed”, but also all elements of the class “freedom”. Use with care.
The equivalent to ‘.reed’ is ‘[class~=reed]’.
You’re better off matching the beginning with ‘^=’ or the end with ‘$=’.
http://www.w3.org/TR/selectors/#attribute-selectors