[Html-widget] HTML::Widget::Element::Password->maxlength
Ash Berlin
ash at cpan.org
Thu Jun 22 13:35:25 CEST 2006
Krzysztof Krzyzaniak wrote:
> Just curious: why HTML::Widget::Element::Password doesn't handle
> maxlength method? It's perfectly legal in HTML/XHTML[1].
>
> error:
> Caught exception in SireCSM::Controller::User->login "Can't locate
> object method "maxlength" via package "HTML::Widget::Element::Password"
> at /srv/web/SireCSM/trunk/script/../lib/SireCSM/Controller/User.pm line
> 192."
>
> HTML::Widget 1.07 version.
>
> eloy
>
> [1] http://www.w3.org/TR/html4/interact/forms.html#h-17.4
>
It was missing as a direct accessors - Fireartist added it to the SVN
version on 2006-05-24.
In the mean time you can set it via
$element->attributes({maxlength=>20})
Ash
More information about the Html-widget
mailing list