Skip Menu |

This queue is for tickets about the HTML-Tagset CPAN distribution.

Report information
The Basics
Id: 57496
Status: open
Priority: 0/
Queue: HTML-Tagset

People
Owner: Nobody in particular
Requestors: bobtfish [...] bobtfish.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.10
Fixed in: (no value)



Subject: <input> is not an empty element.
$ perl -MHTML::Tagset -e'warn $HTML::Tagset::emptyElement{input}' 1 at -e line 1. This appears entirely wrong. <input> tags can contain content as this is how you set previous values for them.. E.g. <input type="text" name="foo">initial value</input>
Please find attached a patch which fixes this issue.
Subject: 0001-input-is-not-an-empty-element.patch
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