Issue when binding 'type' on IE8

When binding the 'type' attribute on IE8, I get the error "This command is not supported" when executing code from the 'attr' binding:

    element.setAttribute(attrName, attrValue.toString());

Applying this change fix that problem and it keeps working in other browsers (tested Chrome and Firefox).

Let me know if this makes sense. Thanks!