Jump to content

Year

Day

24 ways to impress your friends

Vote down?

  • Adrien Lavoillotte http://instanceof.me

    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”]