Class Scanner Tool Set a.k.a. Drew made me do it

For an upcoming Microformats related project, Drew McLellan asked me to come up with a small script that includes all the tasks you need to deal with classes.

Well, here goes:

mfsct = {
  check:function(oElm, strClassName){},
  add:function(oElm, strClassName){},
  remove:function(oElm, strClassName){},
  display:function(o){},
  getElements:function(oElm, strTagName, strClassName){}
}

Download

It is neither new or clever, but maybe useful for you, too.

Download the Microformats scanner class tool mfsct.js

That's the lot. Drop feedback on the blog

Examples

DIV with class foo
H5 with class foo