I need to find random nodes according to random attribute values. To do that I use getAtrribute on nodes from getElementsByTagName.
It seems like when I look for cl
It's worth testing all of your Javascript cross-platform, if you're not using something like jQuery to take the pain away, but Class may just be a special case.
This should be a cross-platform way of getting the class:
element.className