Nov 28 2008
∞
Bug Report: setAttribute does not work when used with the style attribute
Takeaway:
Instead of using myElement.setAttribute() to set style information, use myElement.style.cssText = ”;