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')