reenable removeAttribute() call, but fix bug on IE