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

PureHTMLDefinition::makeWellFormed() is now complete, but may be missing a few unit tests. Update spec: we need transforms for the foreign elements. PureHTMLDefinition's children definitions have info but not behavior.

git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@39 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-04-16 16:50:51 +00:00
parent 4c9f4067ab
commit eefb08b6f9
4 changed files with 179 additions and 65 deletions

View File

@@ -119,7 +119,7 @@ class Test_PureHTMLDefinition extends UnitTestCase
);
foreach ($inputs as $i => $input) {
$result = $this->def->removeForeignElements($input);
$result = $this->def->makeWellFormed($input);
$this->assertEqual($expect[$i], $result);
paintIf($result, $result != $expect[$i]);
}