diff --git a/src/parser.c b/src/parser.c index 0447fe8..ae773aa 100644 --- a/src/parser.c +++ b/src/parser.c @@ -328,7 +328,6 @@ static Bool CanPrune( TidyDocImpl* doc, Node *element ) if (nodeIsDD(element)) return no; - return yes; } @@ -2514,7 +2513,14 @@ void TY_(ParseList)(TidyDocImpl* doc, Node *list, GetTokenMode ARG_UNUSED(mode)) continue; } - if ( !nodeIsLI(node) ) + if ( nodeIsLI(node) || TY_(IsHTML5Mode)(doc)) + { + /* node is
  • + Issue #396 - A