mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-10-15 22:16:04 +02:00
Fix bug in HTML_Generator that resulted in extra spaces. PureHTMLDefinition now passes all tests.
git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@34 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -27,6 +27,9 @@ class UnitTest_HTML_Generator extends UnitTestCase
|
||||
$inputs[3] = new MF_EmptyTag('br', array('style' => 'font-family:"Courier New";'));
|
||||
$expect[3] = '<br style="font-family:"Courier New";" />';
|
||||
|
||||
$inputs[4] = new MF_StartTag('asdf');
|
||||
$expect[4] = '<asdf>';
|
||||
|
||||
foreach ($inputs as $i => $input) {
|
||||
$result = $this->gen->generateFromToken($input);
|
||||
$this->assertEqual($result, $expect[$i]);
|
||||
|
Reference in New Issue
Block a user