PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #7697

XHTML 1.0 not valid for submit button

Details

Request #7697XHTML 1.0 not valid for submit button
Submitted2006-05-22 18:49 UTC
Fromclifford at nighthawk dot co dot za
StatusWont fix
PackageHTML_QuickForm
PHP Version4.3.10
OSLinux 2.6
Roadmaps(Not assigned)

Comments

[2006-05-22 18:49 UTC] clifford at nighthawk dot co dot za

Description:
------------
When validating a script which has a submit button it fails XHTML 1.0 Strict, I have found the cause and I have a solution.

Test script:
---------------
<In the script to be validated>
$form->addElement( 'submit', null, 'Send');

<code submit.php>
49 HTML_QuickForm_input::HTML_QuickForm_input($elementName, null, $attributes);
</code>

<fix submit.php>
49 HTML_QuickForm_input::HTML_QuickForm_input($elementName, " ", $attributes);
</fix>

Expected result:
----------------
<tr>
<td align="right" valign="top"><b> </b></td>
<td valign="top" align="left"><input name="&nbsp;" value="Send" type="submit" /></td>

</tr>

Actual result:
--------------
<tr>
<td align="right" valign="top"><b></b></td>
<td valign="top" align="left"><input name="&nbsp;" value="Send" type="submit" /></td>

</tr>