From b29155018bc5184e9e437d096d01650c2c9e30cf Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 16 Apr 2006 21:06:08 +0000 Subject: [PATCH] Add a few more comments about possible extra features. git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@42 48356398-32a2-884e-a903-53898d9a118a --- PureHTMLDefinition.php | 5 +++++ tests/PureHTMLDefinition.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/PureHTMLDefinition.php b/PureHTMLDefinition.php index e8e05b5c..80bb530e 100644 --- a/PureHTMLDefinition.php +++ b/PureHTMLDefinition.php @@ -6,6 +6,7 @@ class PureHTMLDefinition var $generator; var $info = array(); var $info_closes_p = array( + // these are all block elements: blocks aren't allowed in P 'address' => true, 'blockquote' => true, 'dd' => true, @@ -237,6 +238,10 @@ class PureHTMLDefinition continue; } + // this is more TIDY stuff + // we should also get some TABLE related code + // mismatched h# + $current_nesting[] = $current_parent; // undo the pop } diff --git a/tests/PureHTMLDefinition.php b/tests/PureHTMLDefinition.php index ed420e86..2c15fefa 100644 --- a/tests/PureHTMLDefinition.php +++ b/tests/PureHTMLDefinition.php @@ -150,6 +150,8 @@ class Test_PureHTMLDefinition extends UnitTestCase ,new MF_EndTag('div') ); + // automatic list closing + $inputs[9] = array( new MF_StartTag('ol') ,new MF_StartTag('li')