hacked polyfill to preserve setAttr and getAttr so our attribute magic will work