Wrong content type in IE 8 with asyncFormSubmit.

In IE 8, setting the enctype attribute of a form with the
following line does not work:
 form.enctype = value;

The following line works better:
 form.setAttribute('enctype', value);