On Apr 6, 11:05 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Try the latest trunk. It should be fixed but I did not try to
> revalidate.
>
> Massimo

Trunk 811 only solves the problem (or part of it, I have not checked
all) for SQLFORM and introduces visual "garbage" on the forms.

> On Apr 6, 9:34 am, DenesL <denes1...@yahoo.ca> wrote:
>
> I would suggest a DIV instead of FIELDSET, the latter draws a box
> around the hidden elements.

> The problem here is that in gluon/html.py the class TEXTAREA is
> derived from class INPUT (in turn derived from class DIV which is the
> base class for most helpers). So whatever INPUT has, as "type", is
> available to TEXTAREA.

There is nothing stopping you from doing:
t=TEXTAREA(_type='text')
f=FORM(t)
The serialization will still contain the invalid:
<textarea type="text"...

Arguably, it is the developer responsability (to use valid HTML),
which also applies to making sure all INPUT, LABEL, SELECT, TEXTAREA,
etc. are contained in block-level or inline elements.

Denes.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to