mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-30 19:00:10 +02:00
[1.7.0] HTML Purifier now works with PHP 4.3.2. Yay!
- Armor some character index checking - Add compatibility stuff for PHP_EOL - Add autoclose for colgroup - Compensate for realpath() quirkiness in old versions - Add flush maintenance script git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1096 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -97,6 +97,26 @@ class HTMLPurifier_Test extends UnitTestCase
|
||||
|
||||
}
|
||||
|
||||
function test_table() {
|
||||
|
||||
$this->purifier = new HTMLPurifier();
|
||||
$this->assertPurification(
|
||||
'<TABLE>
|
||||
<COLGROUP>
|
||||
<COL span=3 width=64 />
|
||||
<TBODY><TR><TD>1</TD><TD>2</TD><TD>3</TD></TR>
|
||||
</TBODY>
|
||||
</TABLE>',
|
||||
'<table>
|
||||
<colgroup>
|
||||
<col span="3" width="64" />
|
||||
</colgroup><tbody><tr><td>1</td><td>2</td><td>3</td></tr>
|
||||
</tbody>
|
||||
</table>'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user