Subject: | HTML::Form unuseful warnings |
Many HTML pages on the Internet have input widgets outside of a form. This may not be standard but all the browsers work OK with that without giving any warning. Why should HTML::Form give this unuseful warning?
--- HTML/Form.pm
+++ HTML/Form.pm
@@ -9,8 +9,6 @@
use vars qw($VERSION);
$VERSION = sprintf("%d.%03d", q$Revision: 1.49 $ =~ /(\d+)\.(\d+)/);
-my %form_tags = map {$_ => 1} qw(input textarea button select option);
-
my %type2class = (
text => "TextInput",
password => "TextInput",
@@ -213,9 +211,6 @@
}
}
}
- elsif ($form_tags{$tag}) {
- Carp::carp("<$tag> outside <form>") if $^W;
- }
}
for (@forms) {
$_->fixup;