From 423afedbf4c80f794e84274e3685603c33afd831 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 19 Aug 2007 16:24:55 +0000 Subject: [PATCH] [2.1.2] Fix validation errors in configuration form git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1382 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 1 + library/HTMLPurifier/Printer/ConfigForm.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 88a3d55b..7e32465d 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier accepted as valid CSS. Usually non-visible, because this styling is the default for tables in most browsers. Thanks Brett Zamir for pointing this out. +- Fix validation errors in configuration form . Unit test refactoring for one logical test per test function . Config and context parameters in ComplexHarness deprecated: instead, edit the $config and $context member variables diff --git a/library/HTMLPurifier/Printer/ConfigForm.php b/library/HTMLPurifier/Printer/ConfigForm.php index ebe040a7..21b8314b 100644 --- a/library/HTMLPurifier/Printer/ConfigForm.php +++ b/library/HTMLPurifier/Printer/ConfigForm.php @@ -100,14 +100,14 @@ class HTMLPurifier_Printer_ConfigForm extends HTMLPurifier_Printer $ret .= $this->renderNamespace($ns, $directives); } if ($render_controls) { - $ret .= $this->start('tfoot'); + $ret .= $this->start('tbody'); $ret .= $this->start('tr'); $ret .= $this->start('td', array('colspan' => 2, 'class' => 'controls')); - $ret .= $this->elementEmpty('input', array('type' => 'Submit', 'value' => 'Submit')); + $ret .= $this->elementEmpty('input', array('type' => 'submit', 'value' => 'Submit')); $ret .= '[Reset]'; $ret .= $this->end('td'); $ret .= $this->end('tr'); - $ret .= $this->end('tfoot'); + $ret .= $this->end('tbody'); } $ret .= $this->end('table'); return $ret;