Amen. Class Attribute is for More Than CSS

| Comments

I’ve had a few cases where I use the class attribute of an element to rig javascript, only to find that later someone has “improved” the page, changed all the class names, and broken my javascript.
456 Berea St. has a nice post about how the class attribute encompasses more than just CSS.

I’ll also add that microformats are pretty much based entirely on class names being correct. I’ll leave the debate over their utility to others.

blog comments powered by Disqus

About this Entry

This page contains a single entry by Aaron Oliver published on February 13, 2009 9:15 PM.

Is There a Name for This? was the previous entry in this blog.

The Agile Manifesto Demands We Win Over Hearts and Minds is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Creative Commons License
This blog is licensed under a Creative Commons License.