title: html - form table - invalid markup
body: <p>I understand it is incorrect to have a form inside a table row.  There does seem to be a practical reason for doing this though.</p>
  
  <p>I would like to be able to edit each row individually (ajax and such), so it makes sense that each for is its own form.</p>
  
  <p>Below is functionally how I need the table and form to be laid out, but the markup isn't valid. And furthermore, haml/erb actually won't process the markup like this (the form is opened and closed within the first cell).   </p>
  
  <p>I could use display: table-cell and such, but I think the data I'm displaying does belong in a table, semantically.</p>
  
  <p>How can I accomplish the same function with proper markup?  </p>
  
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;id&lt;/th&gt;
      &lt;th&gt;name&lt;/th&gt; 
      &lt;th&gt;email&lt;/th&gt;
      &lt;th&gt;phone&lt;/th&gt;
      &lt;th&gt;address&lt;/th&gt; 
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;%= form_for person do |f| %&gt;
        &lt;td&gt;&lt;%= id %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%= f.text_field :name%&gt;&lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
      &lt;% end %&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>