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

[1.7.0] Implement addBlankElement for non-standalone elements.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1047 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-05-12 20:54:55 +00:00
parent e0cf214c44
commit cb9c96a2b0
4 changed files with 43 additions and 19 deletions

View File

@@ -108,6 +108,19 @@ class HTMLPurifier_HTMLModuleTest extends UnitTestCase
}
function test_addBlankElement() {
$module = new HTMLPurifier_HTMLModule();
$def =& $module->addBlankElement('a');
$def2 = new HTMLPurifier_ElementDef();
$def2->standalone = false;
$this->assertReference($module->info['a'], $def);
$this->assertIdentical($def, $def2);
}
}
?>