- From: Bodo Eing <eingb@uni-muenster.de>
- Date: Wed, 27 Sep 2000 13:20:38 +0200
- To: <html-tidy@w3.org>, <bdu@cosmosbay.com>
Date forwarded: Wed, 27 Sep 2000 05:05:04 -0400 (EDT) Send reply to: <bdu@cosmosbay.com> From: "Baptiste DU" <bdu@cosmosbay.com> To: <html-tidy@w3.org> Date sent: Wed, 27 Sep 2000 11:05:18 +0100 Subject: table and form Forwarded by: html-tidy@w3.org Baptiste, you wrote > Hi, > > here is the problem i 'm facing: > when i use TIDY on an HTML page which contains a tag <table> and inside > this tag > i have a form <form>, TIDY creates another tag <table> just after the tag > <form> > > to be more explicit: > the code before TIDY: > <table> > <tr> > <td>...</td> > <form ...> > <td>...</td> > </form> > <td>...</td> > </tr> > </table> This code is incorrect, because the <form> element is not an approved <table> element. To produce correct HTML, you must put the form into a table data cell like ... <td...><form...><input.... /></form..></td..> ... or make your complete table an element of the form like <form...> <table...> ..your table here ..<td...><input... /></td>....etc... </table> </form> > > the code after TIDY: > <table> > <tr> > <td>...</td> > <form ...> > > <table> > <tr> > <td>...</td> > </tr> > </table> > > </form> > <td>...</td> > </tr> > </table> > > has someone already faced this issue? Not exactly this one, but some similar. I think one should not be too disappointed that tidy cannot guess all possible intentions which may be hidden behind a syntactical error, especially if this error was not a typo or a forgotten end tag, but generated intentionally. Bodo Eing eingb@uni-muenster.de Dr. med. Bodo Eing Institut fuer Medizinische Mikrobiologie Klinische Virologie v.-Stauffenbergstr. 36 48151 Muenster Germany Phone: ++49 251 7793 111 Fax: ++49 251 7793-104
Received on Wednesday, 27 September 2000 07:25:32 UTC