Subject: | HTML::Form and html5 |
Date: | Wed, 28 Mar 2012 11:38:16 +0200 |
To: | bug-HTML-Form [...] rt.cpan.org |
From: | Martin Dziobek <dziobek [...] ihr.uni-stuttgart.de> |
Distribution name and version: HTML-Form-6.02
Hello,
html5 introduces several new types of input elements
that HTML::Form cant cope with (yet).
According to
http://dev.w3.org/html5/html4-differences/#new-elements
these are
"The input element's type attribute now has the following new values:
tel
search
url
email
datetime
date
month
week
time
datetime-local
number
range
color
"
Example:
<input type="search" name="search" title="Search Wiki [f]" accesskey="f" id="searchInput" />
Adding the new types to %type2class fixes this.
my %type2class = (
text => "TextInput",
password => "TextInput",
hidden => "TextInput",
textarea => "TextInput",
search => "TextInput",
....
It would be nice to add these new input types to the official module.
Thanks for your developers work!
Martin Dziobek