W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: Tidy becomes less forgiving

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
Message-ID: <69l7qt8p6d3u3cugfviuekijsjk3l3k9l1@4ax.com>
* 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



  <tr><td><input ...</td>

NOT constructs like




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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC