I've read that apparently using the setAttribute function to dynamically set the name attribute to an element won't work in IE? Quite a lot of people have said that this is an inherent bug in IE where it will set common attributes like the 'id' or 'cols' or 'rows' etc, but it will not set the 'name'.

One work around I thought I had discovered was to set the name field by calling it by it's ID. document.getElementById("some-id").name = "some-name";

But the only problem with the above work around is that for some seriously weird reason it appears in the element like so:
<input type="text" submitName="some-name" id="some-id">

Why is it setting to submitName? And is there any other way I can dynamically set the name?