24 ways to impress your friends

Jump to menu

Vote down?

Adrien Lavoillotte

Each advanced attribute selectors has its shortcomings, because of the potential multiplicity of class names.

http://codepen.io/joe/pen/Ilhsp

If you want to handle all cases, you end up with something that looks like this:

[class|=“pod”],
[class*=” pod-”],
[class*=” pod “],
[class$=” pod”]