Re: QuickForm and XHTML

From: Date: Thu, 14 Jul 2005 06:55:27 +0000
Subject: Re: QuickForm and XHTML
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19987@lists.php.net to get a copy of this message
Hi, Pupeno wrote:
Is there some switch to enable XHTML on QuickForm ? Or how do I get valid XHTML ? I am running the last version and I get this errors: This page is not Valid XHTML 1.0 Strict! Line 81, column 78: there is no attribute "name" ...Map/register.php" method="post" name="register" id="register" onsubmit="retur
That's covered in e.g. release notes [1]: ========== As of 3.2.2 QuickForm does not rely on presence of 'name' attribute in form tag (which is invalid in Strict XHTML), although it does set this attribute. If you desire Strict XHTML compliance, you can remove the attribute via removeAttribute() method. ==========
Line 125, column 47: there is no attribute "size" ...gn="top" align="left"><textarea size="30" maxlength="255" name="description"> Line 125, column 62: there is no attribute "maxlength" ..."left"><textarea size="30" maxlength="255" name="description"></textarea></..
You've set these attributes yourself obviously. QuickForm is not smart enough to prevent you from doing this.
Line 125, column 86: required attribute "rows" not specified ...0" maxlength="255" name="description"></textarea></td> Line 125, column 86: required attribute "cols" not specified ...0" maxlength="255" name="description"></textarea></td>
And here you didn't set the attributes. QuickForm isn't smart enough to force you do that. [1] http://pear.php.net/package/HTML_QuickForm/download/3.2.2

« previous php.pear.general (#19987) next »