title: Javascript/HTML Form field naming issue
body: <p>Consider the following simple form:</p>
  
  <pre><code>&lt;form method="GET" action="handle.php"&gt;
    &lt;input type="hidden" name="action" value="search"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Form submission is performed by Javascript (iui) in an ajax call. All fields are properly gathered from the form. Javascript then wants to send the ajax call to "<strong>form.action</strong>".</p>
  
  <p>This is where my problem starts. The object <strong>form</strong> is of type HTMLFormElement. The <strong>action</strong> property of the form is supposed to be of type string and should contain "handle.php". After some hours of debugging, I noticed that form.action is now of type HTMLInputElement.</p>
  
  <p>My question:
  Is this proper Javascript behavior? I would have never though that defining a form field with the name of a form attribute, this would happen. In the mean time I solved the issue by naming my field differently. </p>
  
  <p>Thanks in advance for any advice...</p>
  
  <hr>
  
  <p>Found an easy way of displaying my problem. First the form with the problem:</p>
  
  <pre><code>&lt;form action="test.php"&gt;
      &lt;input type="hidden" name="action" value="test"&gt;
      &lt;input type="button" onclick="alert(this.form.action);"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And the form that is proper:</p>
  
  <pre><code>&lt;form action="test.php"&gt;
      &lt;input type="hidden" name="NOT_AN_ATTRIBUTE_NAME" value="test"&gt;
      &lt;input type="button" onclick="alert(this.form.action);"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In the first, the popup states "[object HTMLInputElement]", in the second: "http://localhost/test.php".</p>