Skip Menu |

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

Report information
The Basics
Id: 76119
Status: resolved
Priority: 0/
Queue: HTML-Form

People
Owner: Nobody in particular
Requestors: dziobek [...] ihr.uni-stuttgart.de
Cc:
AdminCc:

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



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
On Wed Mar 28 05:38:31 2012, dziobek@ihr.uni-stuttgart.de wrote:
Show quoted text
> html5 introduces several new types of input elements
> that HTML::Form cant cope with (yet).

Since HTML::Form will default to treating any unknown input type as 'TextInput' it's not correct to say that it can not cope with the new HTML5 types.  Adding entries for these only have the effect that HTML::Form will not issue warnings if you pass 'verbose => 1' to the HTML::Form constructor.

Anyways, I added entries for these in <https://github.com/gisle/html-form/commit/dbd896956d67e2589068e688bfc6f84131b078ee&gt;.