1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-04 21:28:06 +02:00

[1.7.0] Rewire dependencies, removing redundant includes and adding necessary ones

- Rework descendants_are_inline to have default value as false, ins/del handling now works top-level when parent element is not block
- Remove CleanUTF8OnGeneration, feature didn't even work

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1086 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-05-22 00:47:03 +00:00
parent ff7eec7424
commit 797d3e0393
9 changed files with 15 additions and 32 deletions

View File

@@ -37,7 +37,7 @@ class HTMLPurifier_ElementDefTest extends UnitTestCase
'old' => true,
'removed-old' => true
);
$def1->descendants_are_inline = $overloaded_old;
$def1->descendants_are_inline = false;
$def1->excludes = array(
'old' => true,
'removed-old' => true
@@ -64,7 +64,7 @@ class HTMLPurifier_ElementDefTest extends UnitTestCase
'new' => true,
'removed-old' => false
);
$def2->descendants_are_inline = $overloaded_new;
$def2->descendants_are_inline = true;
$def2->excludes = array(
'new' => true,
'removed-old' => false
@@ -94,7 +94,7 @@ class HTMLPurifier_ElementDefTest extends UnitTestCase
'old' => true,
'new' => true
));
$this->assertIdentical($def1->descendants_are_inline, $overloaded_new);
$this->assertIdentical($def1->descendants_are_inline, true);
$this->assertIdentical($def1->excludes, array(
'old' => true,
'new' => true