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 #3414

Form tag still not XHTML compliant

Details

Submitted2005-02-09 13:07 UTC
Fromsnowkrash at xs4all dot nl
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.0
OSAny
Roadmaps(Not assigned)

Comments

[2005-02-09 13:07 UTC] snowkrash at xs4all dot nl

Description:
------------
PEAR version 1.3.4
HTML_Common version 1.2.1
HTML_Quickform version 3.2.4pl1

The generated form code isn't completely XHTML strict compliant: The <form> tag isn't allowed to have a 'name' identifier, only 'id' is allowed.

Unlike what was said in Bug #2829 by avb ... it still isn't solved.

Reproduce code:
---------------
$oQForm =& new HTML_Quickform('frmLogin'
,'post'
,$_SERVER['PHP_SELF']
,null
,null
,null);

Expected result:
----------------
<form action="/site/page.php" method="post" id="frmLogin">

I remove the name by eregi_replace on the generated code.

Actual result:
--------------
<form action="/site/page.php" method="post" name="frmLogin" id="frmLogin">