Index: tests/Zend/Form/SubFormTest.php
===================================================================
--- tests/Zend/Form/SubFormTest.php (Revision 21740)
+++ tests/Zend/Form/SubFormTest.php (Arbeitskopie)
@@ -130,7 +130,7 @@
$form->addSubForm($subForm, 'foobar')
->setView(new Zend_View);
$html = $form->render();
- $this->assertContains('<dt> </dt>', $html);
+ $this->assertContains('<dt><!-- --></dt>', $html);
}
}
Index: tests/Zend/Form/DisplayGroupTest.php
===================================================================
--- tests/Zend/Form/DisplayGroupTest.php (Revision 21740)
+++ tests/Zend/Form/DisplayGroupTest.php (Arbeitskopie)
@@ -401,7 +401,7 @@
$this->group->addElements(array($foo, $bar));
$html = $this->group->render($this->getView());
- $this->assertRegexp('#^<dt[^>]*> </dt><dd[^>]*><fieldset.*?</fieldset></dd>$#s', $html, $html);
+ $this->assertRegexp('#^<dt[^>]*><!-- --></dt><dd[^>]*><fieldset.*?</fieldset></dd>$#s', $html, $html);
$this->assertContains('<input', $html, $html);
$this->assertContains('"foo"', $html);
$this->assertContains('"bar"', $html);
@@ -415,7 +415,7 @@
$this->group->addElements(array($foo, $bar))
->setView($this->getView());
$html = $this->group->__toString();
- $this->assertRegexp('#^<dt[^>]*> </dt><dd[^>]*><fieldset.*?</fieldset></dd>$#s', $html, $html);
+ $this->assertRegexp('#^<dt[^>]*><!-- --></dt><dd[^>]*><fieldset.*?</fieldset></dd>$#s', $html, $html);
$this->assertContains('<input', $html);
$this->assertContains('"foo"', $html);
$this->assertContains('"bar"', $html);
Index: tests/Zend/Form/Element/RadioTest.php
===================================================================
--- tests/Zend/Form/Element/RadioTest.php (Revision 21740)
+++ tests/Zend/Form/Element/RadioTest.php (Arbeitskopie)
@@ -168,7 +168,7 @@
'test' => 'Test',
));
$html = $this->element->render($this->getView());
- $this->assertRegexp('#<dt[^>]*> </dt>.*?<dd#s', $html, $html);
+ $this->assertRegexp('#<dt[^>]*><!-- --></dt>.*?<dd#s', $html, $html);
}
/**
Index: tests/Zend/Form/FormTest.php
===================================================================
--- tests/Zend/Form/FormTest.php (Revision 21740)
+++ tests/Zend/Form/FormTest.php (Arbeitskopie)
@@ -3757,7 +3757,7 @@
$html = $form->render();
- $this->assertContains('<dt id="foo-label"> </dt>', $html);
+ $this->assertContains('<dt id="foo-label"><!-- --></dt>', $html);
$this->assertContains('<dd id="foo-element">', $html);
}
@@ -3773,7 +3773,7 @@
$html = $form->render();
- $this->assertContains('<dt id="testform-label"> </dt>', $html);
+ $this->assertContains('<dt id="testform-label"><!-- --></dt>', $html);
$this->assertContains('<dd id="testform-element">', $html);
}
Index: library/Zend/Form/Decorator/Label.php
===================================================================
--- library/Zend/Form/Decorator/Label.php (Revision 21740)
+++ library/Zend/Form/Decorator/Label.php (Arbeitskopie)
@@ -310,7 +310,7 @@
$options['class'] = $class;
$label = $view->formLabel($element->getFullyQualifiedName(), trim($label), $options);
} else {
- $label = ' ';
+ $label = '<!-- -->';
}
if (null !== $tag) {
Index: library/Zend/Form/Decorator/DtDdWrapper.php
===================================================================
--- library/Zend/Form/Decorator/DtDdWrapper.php (Revision 21740)
+++ library/Zend/Form/Decorator/DtDdWrapper.php (Arbeitskopie)
@@ -57,7 +57,7 @@
{
$elementName = $this->getElement()->getName();
- return '<dt id="' . $elementName . '-label"> </dt>' .
+ return '<dt id="' . $elementName . '-label"><!-- --></dt>' .
'<dd id="' . $elementName . '-element">' . $content . '</dd>';
}
}
Please evaluate and categorize as necessary.