W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Re: a question about table/form nesting

From: Charles Reitzel <creitzel@rcn.com>
Date: Thu, 20 Mar 2003 14:35:53 -0500
Message-Id: <>
To: Hai He <hhcsbu@yahoo.com>
Cc: html-tidy@w3.org

Oops.  Not sure what JTidy will do with forms and tables.  I believe it is 
consistent with 04Aug2000 version of C Tidy.

I believe, also, that it does not support the --force-output 
option.  However, it shouldn't be difficult to modify JTidy to generate 
output  even if errors are present.

Can any JTidy users advise Hai?

take it easy,

At 10:51 AM 3/20/2003 -0800, Hai He wrote:

>Dear Charles,
>Thank you so much for your prompt reply and detailed explanation.
>What I am intending to is tidying a HTML page that contains forms. And then
>extract all labels and form elements.
>What version of Jidy are you using? I am using Java version: 
>Thanks a million again.
>Best regard,
>Hai He
>  Charles Reitzel <creitzel@rcn.com> wrote:
>Hello Hai,
>Assuming you have a recent version of Tidy, the basic problem is that the 
>page is mixing form and table elements in unsafe ways. It is not unusual
>for inexperienced web developers to do this kind of thing, however.
>If you cannot update the page, try the --force-output option to force Tidy 
>to do the best it can. There are no guarantees that the results will be
>what you want. It may or may not be better than the original. I tried your 
>example, and Tidy seems to do OK with it.
>If you can update the page, move the and tags to just before
>and just after the the and tags, respectively. E.g.
>... snip ...
>If you need several forms within a single layout table, use nested tables 
>and put the entire form within a single cell. If necessary, you can merge
>cells in the outer table using rowspan and colspan.
>take it easy,
>P.S. This is one for the FAQ
>At 07:36 AM 3/20/2003 -0800, you wrote:
> >Dear all,
> >
> >I am using the latest version of Tidy to tidy a HTML page:
> >http://www.bookpool.com/.x/np66ice556/fi.
> >After that, I find that the end FORM tag for "simple search" is missing. I
> >am wondering if somebody can help me out. I would appreciate it so much.
> >
> >Sincerely,
> >
> >Hai He
Received on Thursday, 20 March 2003 17:06:16 UTC

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