Re: table and form

At 14:06 27.09.2000 +0100, Fred Bone wrote:
>On 27 Sep 2000, at 13:57, Sebastian Lange wrote:
>
> > I think the basic point of Monsieur Baptiste was:
> >
> > If Tidy finds <FORM> inside of <TABLE> (but outside <TD>), it should move
> > the <FORM>...</FORM> around the table rather than creating additional
> > tables (as it does now).
> > I agree with him, and I think that Dave is already aware of this problem,
> > if I remember right it has been discussed about 2-3 months ago.
>
>OK, try this:
>
><table>
><tr><form><td> ... form content ... </td></form></tr>
><tr><form><td> ... form content ... </td></form></tr>
></table>

I see... valid point.

Yet, Tidy's approach with nested tables produces incorrect HTML, <form> may 
not be contained within <form>:


     <table border=1>
       <tr>
         <td>
           <form>
             <table border=1>
               <tr>
                 <td>... form content ...</td>
               </tr>
               <tr>
                 <td>
                   <form>
                     <table border=1>
                       <tr>
                         <td>... form content ...</td>
                       </tr>
                     </table>
                   </form>
                 </td>
               </tr>
             </table>
           </form>
         </td>
       </tr>
     </table>

What do we do now?
I think it should be quite safe to move <form> around <table> if there is 
not more than ONE <form> within the <table>...
If there are multiple <form>s, I see two ways: either move the <form> into 
<td> or split the table into multiple tables (not nested), but this might 
cause problems with the rowspan attribute.

Any way out?


--
Sebastian Lange
http://www.sl-chat.de/
Maybe the first chat site that validates as HTML
4.0 even though user input may contain HTML codes.

Courtesy to Dave Raggett's HTML Tidy:
http://www.w3.org/People/Raggett/tidy/

Tidy your documents ONLINE:
http://www.sl-chat.de/Tidy/

Received on Wednesday, 27 September 2000 09:31:46 UTC