Changeset 10985
- Timestamp:
- 08/20/08 09:26:11 (11 months ago)
- Files:
-
- branches/1.1/lib/widget/sfWidget.class.php (modified) (1 diff)
- branches/1.1/test/unit/widget/sfWidgetTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/widget/sfWidget.class.php
r9046 r10985 276 276 } 277 277 278 return sprintf('<%s%s%s', $tag, $this->attributesToHtml($attributes), self::$xhtml ? ' />' : sprintf('></%s>', $tag));278 return sprintf('<%s%s%s', $tag, $this->attributesToHtml($attributes), self::$xhtml ? ' />' : ('input' != $tag ? sprintf('></%s>', $tag) : '>')); 279 279 } 280 280 branches/1.1/test/unit/widget/sfWidgetTest.php
r7899 r10985 159 159 $t->is(sfWidget::isXhtml(), true, '::isXhtml() return true if the widget must returns XHTML tags'); 160 160 sfWidget::setXhtml(false); 161 $t->is($w->renderTag('input', array('value' => 'Test')), '<input value="Test"> </input>', '::setXhtml() changesthe value of the XHTML tag');161 $t->is($w->renderTag('input', array('value' => 'Test')), '<input value="Test">', '::setXhtml() changesthe value of the XHTML tag');

