Re: HTML_QuickForm_Renderer_Tableless - generated output contains an ordered list

From: Date: Fri, 19 Jan 2007 11:46:40 +0000
Subject: Re: HTML_QuickForm_Renderer_Tableless - generated output contains an ordered list
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26377@lists.php.net to get a copy of this message
> Le vendredi 19 janvier 2007 12:00, Sebastian Schneider a écrit : > Hi folks! > > I am using HTML_QuickForm and the Tableless-Renderer. Why does Tableless > put a an ordered list around the form elements and and a list element > around each element? > > How do I change this behaviour and why is it the default one? Are there > any advantages when formatting the form with CSS if you put the form's > elements in a list? > There are none (at least for me). It would be better to have a generated html code with div and correct class elements. In fact i suspect that the ul/li system has been choosen to have a ordered vertical chain of every for element. Anyway the ul/li system makes appear lot of trouble : - Rendering under ie6 become a mine field (it's already hard) but with list element it's close to impossible to have a correct rendering. Because ie just add come text-indent to li that I have been unable to remove easily. - the code becomes heavy for nothing. - the dom tree become a hell for nothing - etc... If there are people that are ok here for draw a new HTML_QuickForm2 class with : - php5 E_STRICT compliant only (public/private/static things in) - pure xhtml1.1 - l10n (not have only english string for required field) I would be ok to do the first part of code. I would have some improvement for textarea/date for example to add: Textarea : - a javascript counter dynamicaly append to allow to watch lenght - set value whould not makes textarea's value attribute to be set, but the data instead. Date : - a dynamic calendar and HH/MM/SS that generate unix timestamp

Attachment: [application/pgp-signature]
« previous php.pear.general (#26377) next »