XHTML Bugfixes

This commit is contained in:
Wouter van Oijen 2005-10-16 20:20:31 +00:00
parent 3d65ae2158
commit 0a0195fd60
4 changed files with 17 additions and 7 deletions

View file

@ -96,8 +96,10 @@ Renders an input tag of type password.
sub toHtml {
my $self = shift;
return '<input type="password" name="'.$self->{name}.'" value="'.$self->fixQuotes($self->{value}).'" size="'.
$self->{size}.'" id="'.$self->{id}.'" maxlength="'.$self->{maxLength}.'" '.$self->{extras}.' />';
my $html = '<input type="password" name="'.$self->{name}.'" value="'.$self->fixQuotes($self->{value}).'" size="'.$self->{size}.'" id="'.$self->{id}.'" ';
$html .= 'maxlength="'.$self->{maxLength}.'" ' if ($self->{maxLength});
$html .= $self->{extras}.' />';
return $html;
}