|
Posted by Ben C on 10/19/07 08:50
On 2007-10-19, rf <rf@invalid.com> wrote:
[...]
> The page is basically what you presented earlier, a couple of invalid tables
> like:
><table>
><form action='dumpdom.html' method=get>
><tr><td>
><input type=text name=textfield>
><input type=submit name=subbutton>
></td></tr>
></form>
></table>
>
> Use IE first. You will see that the (generated) <tbody> is a child of the
><form> and so the input elements are also decendents of the form. So
> everything "works as expected". IE has ignored your error.
>
> However now use FF. You will see that the <tbody> is now not a child of the
> form. In fact the form has been "closed" before the <tbody>. The input
> elements are no longer decendants of the <form>. FF has "corrected" your
> error. The fact that the "forms" are actually submitted is quite strange. FF
> must be internally keeping some alternate representation of the page to
> cater for just this error.
I think that's right. It appears to close the form immediately, and also
makes it display: none (otherwise CSS anonymous table boxes would be
generated all over the place). Then it leaves the form contents where
they are for the purposes of layout, but for the purposes of submitting
them, associates them with something like "the most recently-seen
buggered-up form".
> It is, after all, a quite common one.
I know, and all because of a harmless and easily-overridden bottom
margin.
[Back to original message]
|