Subject: | nested lists not well-formed XHTML |
Nesting lists (=over ... =over) emits <dd><dl></dd>...</dl> which is
not correctly nested. Test case attached.
Subject: | 0001-test-for-nested-lists.patch |
From 97cc7e43d6f5b9800dc8fad8141f29cef4a91115 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lars=20D=C9=AA=E1=B4=87=E1=B4=84=E1=B4=8B=E1=B4=8F=E1=B4=A1=20=E8=BF=AA=E6=8B=89=E6=96=AF?= <daxim@cpan.org>
Date: Sat, 7 Nov 2009 14:33:09 +0100
Subject: [PATCH] test for nested lists
---
t/xhtml01.t | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 43 insertions(+), 1 deletions(-)
diff --git a/t/xhtml01.t b/t/xhtml01.t
index d272390..38c1742 100644
--- a/t/xhtml01.t
+++ b/t/xhtml01.t
@@ -8,7 +8,7 @@ BEGIN {
use strict;
use lib '../lib';
-use Test::More tests => 33;
+use Test::More tests => 34;
use_ok('Pod::Simple::XHTML') or exit;
@@ -220,6 +220,48 @@ is($results, <<'EOHTML', "bulleted author list");
EOHTML
+initialize($parser, $results);
+$parser->parse_string_document(<<'EOPOD');
+=over
+
+=item Pinky
+
+=over
+
+=item World Domination
+
+=back
+
+=item Brain
+
+=back
+
+EOPOD
+
+is($results, <<'EOHTML', 'nested lists');
+<dl>
+
+<dt>Pinky</dt>
+<dd>
+
+</dd>
+
+<dl>
+
+<dt>World Domination</dt>
+<dd>
+
+</dd>
+</dl>
+
+<dt>Brain</dt>
+<dd>
+
+</dd>
+</dl>
+
+EOHTML
+
initialize($parser, $results);
$parser->parse_string_document(<<'EOPOD');
--
1.6.4.1