IE6でname属性がうまくいかない?
書名検索版をAmazonプライムに対応するついでにinnerHTMLもやめようと思ってinputのときってcreateElementの()の中どう書くんだったっけ?とググるとIE6の場合はname属性つけても、設定されないということが分かった。
MSDNにも
The NAME attribute cannot be set at run time on elements dynamically created with the createElement method. To create an element with a name attribute, include the attribute and value when using the createElement method.
だそうで、サンプルも
var oAnchor = document.createElement("<A NAME='AnchorName'></A>");
朝からいきなり、心が折れそうに…
帰ってくるまでにどうするか考えます。