While reading the documentation for web.py I noticed that the form.py
module renders forms in a table, which is not semantic and doesn't
adhere to W3C standards. The proper structure of a form is as follows:

<pre>
&lt;form action="$url" method="GET|POST" name="foo">
&lt;fieldset>
&lt;legend>insert form section header here&lt;/legend>
insert your form inputs and buttons here
&lt;/fieldset>
&lt;/form>
</pre>

If you don't mind my asking, why were tables chosen? They don't follow
the proper structure of a form... as far as I could tell from the
source, the form element isn't used at all; I'm surprised the forms
even function.

I'm somewhat new to web.py and I enjoy it so far, but this sort of
rendering bugged me. If you want, I could see about modifying form.py
to adhere to W3C standards. In its current form (no pun intended :P),
it will not validate with w3's validator, and may not render properly
in all browsers.

My apologies if the code example I provided doesn't display properly;
there isn't a preview function here at Google Groups.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to