w3c validation

Started by rlance, June 02, 2005, 08:44:25 PM

Previous topic - Next topic

rlance

My blind friend's JAWS interface can't easily deal with the front page of the toaster because of the non-validating forms.

Where is the code and/or template which instantiates the index.tmpl
<VAR_TMPL name="sqwebmail">
<VAR_TMPL name="squirrelmail"> etc.?

Ahso, I found it!  In lib/Mail/Toaster/CGI.pm

And the rules appear to be (http://www.zytrax.com/tech/web/really.html" target="_blank">http://www.zytrax.com/tech/web/really.html):
Nesting Forms and Tables

You can place the form, form end and form elements almost anywhere in a table and browsers will render it correctly. But if you don't get it just perfect the W3C validation service will reject your wonderful page. Now its not clear what 'just perfect' is 'cos the form section of the HTML 4.01 spec doesn't have anything to say on the question of positioning and nesting. However it appears the rules are:

   * contain the whole form in a single table cell (between <td></td>) OR
   * start the form before the table and finish it after the table AND make sure that all <input> elements are inside a cell - even hidden ones.
==========================================================
Will post patches as soon as ...