per the slideshow, 3 "best practice myths":
- don't add any extra elements
- don't add classes
- use descendent selectors exclusively
the second two i've never heard in my life, and i'm quite sure the first is not a myth.
- don't add any extra elements
- don't add classes
- use descendent selectors exclusively
the second two i've never heard in my life, and i'm quite sure the first is not a myth.
in that example, classitis is when you give a class "item" to every li element, the using .item to style it while the alternate way to do it is using the descendent selector (.parentcontainer li). Nicole Sullivan is saying this can lead to specificity war over time.
Avoiding non-semantic elements and non-semantic classes, however, restricts you to using descendant selectors (and multiple declarations), which, as she points out, creates another maintenance issue in the form inheritance conflict resolution (specificity).