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)    
Subscription  
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:
MUST BE VALID
Solve the problem : 43 + 23 = ?

 
 [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 validate.w3c.org. 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\t
{error}
\t{element}
\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>

Comments

 [2005-11-01 11:16 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-11-03 20:37 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!