Change setAttr to className for better performance on fallback.