Please find attached a patch which fixes this issue.
From b2a9b4c20ec4c57735273ff0cc53e887c116554a Mon Sep 17 00:00:00 2001
From: Tomas Doran <bobtfish@bobtfish.net>
Date: Sat, 15 May 2010 00:41:41 +0200
Subject: [PATCH] <input> is not an empty element
---
Changes | 2 ++
Tagset.pm | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Changes b/Changes
index 563c4ab..a123257 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
Revision history for Perl extension HTML::Tagset
+ -- Remove <input> from the list of empty elements.
+
2008-02-29 Andy Lester
* Release 3.20 -- Added <div> to the list of p_closure_barriers.
diff --git a/Tagset.pm b/Tagset.pm
index 754137f..6d6350d 100644
--- a/Tagset.pm
+++ b/Tagset.pm
@@ -63,7 +63,7 @@ C<$HTML::Tagset::emptyElement{'dl'}> does not exist, and so is not true.
%emptyElement = map {; $_ => 1 } qw(base link meta isindex
img br hr wbr
- input area param
+ area param
embed bgsound spacer
basefont col frame
~comment ~literal
--
1.6.5.3.171.ge36e