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

HTML_QuickForm_Renderer_Array ignores pseudo-elements type 'html'

Details

Submitted2005-01-20 19:58 UTC
Frompear at yellowsunshine dot de
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.4
OSirrelevant
Roadmaps(Not assigned)

Comments

[2005-01-20 19:58 UTC] pear at yellowsunshine dot de

Description:
------------
HTML_QuickForm_Renderer_Array ignores pseudo-elements of type 'html'.

Reproduce code:
---------------
$form = new HTML_QuickForm('metadata', UI_STANDARD_FORM_METHOD, UI_BROWSER);
$parts = array ('Main', 'Music_Basic', 'Music_Advanced', 'Talk_Basic', 'Talk_Advanced');
foreach ($parts as $key) {
$form->addElement('html', "<div id='div_$key'>");
$this->_parseArr2Form($form, $mask['pages'][$key]);
$this->_parseArr2Form($form, $mask['basics']);
$form->addElement('html', "</div id='div_$key'>");
}
print_r($form);
## using Dynamic Smarty Renderer
$renderer =& new HTML_QuickForm_Renderer_Array(true, true);
$form->accept($renderer);
$output['pages'][] = $renderer->toArray();
print_r($output);

Expected result:
----------------
html-code of HTML_QuickForm_html() should parsed to output array.

Actual result:
--------------
html-elements are completely removed from output array.

[2005-01-21 19:51 UTC] pear at yellowsunshine dot de

I would miss "html"-element because it´s universal, like capsulate parts of formula in .....