Neil Schemenauer schrieb:
>On Wed, Jul 14, 2004 at 07:06:18PM +0200, Jannis Pohlmann wrote:
>
>
>>is there anyone who has implemented (valid) XHTML tags in Quixote
>>widgets or form class? Or does anyone know of such an implementation?
>>
>>
>
>We intend to generate valid XHTML.
>
>
>
>>Otherwise that would be what I tried to start next days. Also ,
>>as an example, is not valid (should be ) I think there aren't
>>many changes to be made.
>>
>>
>
>Which widget generates '' instead of ''?
>
> Neil
>
>
>
Sorry, you're right. I read the documentation of the demo where the
widget example still
uses the old HTML notation: .
I didn't expect the documentation to differ from the actual output of
the widget classes.
Now I checked the demo output and withdraw my supposition.
Nevertheless I then noticed the rendering functions are using tables
very wastefully. Since
tables are supposed to mark e.g. statistics or generic data usiually
tabulated, they are not
an adequate solution for displaying forms, I think. The only aspect is
optical clearness, as
"labels" and widgets have the same distance in every table row.
In HTML, there is a special tag for this purpose.
What I have seen is that quixote.form2 does not use tables - therefore,
there is a mass of
tags. This is no appropriate solution, either.
I did not check everything of the form and widget classes but there
might be a possibility
to print out forms this way:
In CSS these could easily be accessed by
.quixote_form
.quixote_form ul
.quixote_form li
.quixote_form label
.quixote_form input, .quixote_form select, .quixote_form textarea
.quixote_form .widget_err
.... and so on ...
Another idea would be to put the form elements in one paragraph:
This might be some suggestions in order to improve the form and
widget classes as I think avoiding unnessessary HTML tags is very
important - on the one hand to make the code as readable/maintainable
as possible, on the other to fasten the rendering of documents.
Regarding the XHTML standards and the logical structur of XHTML
this would also be an improvement, I think.
Greetings (after a long night as Quixote is the fourth Application-Server
I am trying out within few days ...),
Jannis