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

Re: Tidy becomes less forgiving

From: Fred Bone <Fred.Bone@dial.pipex.com>
Date: Fri, 14 Sep 2001 16:35:37 +0100
To: html-tidy@w3.org
Message-ID: <3BA231D9.14885.1AD89BD@localhost>
On 14 Sep 2001 at 11:13, Allan Clark wrote:

> Fred Bone wrote:
> > On 14 Sep 2001 at 10:21, Allan Clark wrote:
> > > Does this show that the text Tidy is correcting is indeed
> > > non-compliant?  Not just ambiguous but non-compliant, which requires
> > > tidy to clean it to be compliant to either 3.2 or 4.0 ?
> > >
> > > In past, I've made each row of a table into a form
> > > (<tr><form...>...</form></tr>) but this is illegal?
> > 
> > It isn't valid HTML, which is why Tidy tries to correct it.
> > 
> > > What is the
> > > alternative, so that I have table rows of data that can be modified by
> > > replacing the data in the table cells and clicking a "Edit" (submit)
> > > button on the end ?  I have found this very easy for non-tech users to
> > > grasp.
> > 
> > Put the <form> inside a <td>. If you want structure inside the <form>,
> > use a <table>.
> 
> Now, if the multiple rows of such a markup have to line up, how is that
> done?

You could specify percentage (or fixed) widths, inline or in a 
stylesheet. Or use images to force specific widths.

> The structure you've suggested has multiple tables inside forms in each
> row; the columns of the table on my row #2 won't necessarily line up
> with the columns on the table on row #3.
> 
> <table>
> <tr><form ...> 

Strictly, <tr><td><form> (though <td> can be elided).

> <table><tr><td>..</td><td>..</td><td>..</td></tr></table>  </form></tr>
> <tr><form ...> 
> <table><tr><td>..</td><td>..</td><td>..</td></tr></table>  </form></tr>
> <tr><form ...> 
> <table><tr><td>..</td><td>..</td><td>..</td></tr></table>  </form></tr>
> ...
> ...
> </table>
> 
> As is obvious from my original response to Charlie, I do support the use
> of specs, but the spec does not currently allow me to do what I'm trying
> to do here, so perhaps my past work is stuck being non-compliant.
Received on Friday, 14 September 2001 11:36:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT