Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.10

Bug #5641 generated xhtml code not validated
Submitted: 2005-10-10 11:08 UTC
From: zevs at mail dot vntc dot ru Assigned: avb
Status: Closed Package: HTML_QuickForm_Controller
PHP Version: 5.0.5 OS: linux
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 32 - 26 = ?

 [2005-10-10 11:08 UTC] zevs at mail dot vntc dot ru
Description: ------------ My page using your form and not passing xhtml validation on Error: This code generated by QF:
by xhtml-1.1 standart this form dont have to include attributes like name and target. Please correct this or explain me what i got wrong. Test script: --------------- It is how to render : ++++++++++++++++++++++++++++++++ // Class for form rendering class ActionDisplay extends HTML_QuickForm_Action_Display { function _renderForm(&$page) { global $body; // Set up templates to the renderer the form $renderer =& $page->defaultRenderer(); $page->setRequiredNote('* shows the required fields.'); $page->setJsWarnings('Those fields have errors :', 'Thanks for correcting them.'); $renderer->setFormTemplate("\n\n\n{content}\n
\n"); $renderer->setElementTemplate("\n\t\n\t\t
* {label}
\n\t"); $renderer->setHeaderTemplate("\n\t\n\t\t{header}\n\t"); $renderer->setGroupTemplate('{content}
', 'name'); $renderer->setGroupElementTemplate('{element}
*{label}', 'name'); // Renderer the form $page->accept($renderer); $body = $renderer->toHtml(); } } ++++++++++++++++++++++++++++++ It's how to creating the page ++++++++++++++++++++++++++++++ $wizard =& new HTML_QuickForm_Controller('regWizard', true); $wizard->addPage(new PageUserInfo('page1')); Expected result: ---------------- As result generated not valid code xhtml-1.1 ++++++++++++++++++++++++++++++
Registration (User information)
* First name:
</td> </tr>


 [2005-11-01 11:16 UTC] avb
The way to deal with 'name' attribute is described in release notes for QuickForm 3.2.2 target="_self" appears due to bug #4262 being fixed in QuickForm 3.2.5, QuickForm_Controller should follow this fix. Recategorizing the report as Controller-related.
 [2005-11-03 20:37 UTC] avb
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.