According to SitePoint (and my own experiments), the IE implementation of \"setAttribute()\" is buggy and unreliable.
Also according to SitePoint, the name
name
The name property is not read only for input elements.
See the spec.