Site Navigation

Sunday, March 2, 2008

bug 240 - setAttribute "name" is half broken in IE

Issue: #240
Affects: IE6, IE7

Setting the name attribute of an element in IE is complicated at best (bug 242). Using .setAttribute('name', 'someValue'); will fail in IE. The name attribute is ~readonly~ and can't be modified. However interestingly enough, if you do set this, if the name was applied to a form field, IE will send the correct parameter name on the POST/GET request.

It is highly recommended that you apply some version of the (bug 235) workaround to avoid this bug in IE.

Known Workarounds: One. Use the hack in bug 235.

Related Issues: (bug 242), (bug 235)

Bug/Site Feedback |
Submit a bug