1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

Massively refactored Definition, moved MakeWellFormed HTML specific code out.

Add table functionality for nesting, don't know how I missed that. It's still broken though.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@135 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-07-31 00:15:01 +00:00
parent 2b5589c884
commit 9c6ae16764
3 changed files with 91 additions and 64 deletions

View File

@@ -37,6 +37,10 @@ class HTMLPurifier_Strategy_FixNestingTest
$inputs[4] = '<ul>Illegal text<li>Legal item</li></ul>';
$expect[4] = '<ul><li>Legal item</li></ul>';
// test custom table definition
$inputs[5] = '<table><tr><td>Cell 1</td></tr></table>';
$expect[5] = '<table><tr><td>Cell 1</td></tr></table>';
$this->assertStrategyWorks($strategy, $inputs, $expect);
}