Closed Bug 568779 Opened 10 years ago Closed 10 years ago
the form action is overwritten by an element with id="action"
Thank you very much for the bug report, but this is the "right" behavior. Named controls or controls with ids in the form are exposed as properties on the form itself, and override predefined properties of the form. Web sites depend on this behavior, it's interoperably implemented across Gecko, Webkit (Safari, Chrome), Presto (Opera), and Trident (IE/Windows). In fact, http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-form-element (the "caller getter" part on namedItem, which means it installs a generic getter for any string property name). You can still change the action in your example by using setAttribute("action", something) instead of setting the DOM "action" property if you need to modify it.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.