- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Sun, 16 Sep 2001 01:41:35 +0200
- To: "Reitzel, Charlie" <CReitzel@arrakisplanet.com>
- Cc: "'Patrick Lok'" <plok@inktomi.com>, html-tidy@w3.org
* Reitzel, Charlie wrote:
>I tried one of the files and the error it encountered has to do with Tidy
>being a bit over-zealous (imo) about nesting <form></form> tags within a
>table. In my experience, crossing cells is OK for IE and NS, but crossing
>rows is not. This particular error should probably be recast as a warning.
Tidy has to put out valid (X)HTML (not considering attribute content
models) or output nothing, unless --force-output yes is used. HTML 4 is
quite clear about where form elements are allowed inside a table, this
is, only inside table headers and table cells, i.e. 'th' and 'td' and
any of their valid descendants where form elements are allowed. So you
can only have either
<table>
<tr><td><form>...</form></td></tr>
...
or
<form>
<table>
<tr><td><input ...</td>
...
NOT constructs like
<table>
<form>
<tr>
...
</form>
</table>
or
<table>
<tr><form>...
or whatever else. This may work for some browsers but there is no
gurantee and certain browsers won't deal with it as users expected.
--
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Saturday, 15 September 2001 19:42:42 UTC