getAttribute cannot return class in IE7?

Posted by Nir on Stack Overflow See other posts from Stack Overflow or by Nir
Published on 2009-02-10T08:42:34Z Indexed on 2010/04/14 20:13 UTC
Read the original article Hit count: 198

Filed under:
|

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 class name as attribute it does not work on IE (works on FF).

Anyone know if getAtrribute doesn't work only on 'class' or other attributes as well? (if its only class I'll do a workaround.)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ie7