Double form widget attributes

Permalink
I build form widgets like:
print $form->label('name', "Name: ");
print $form->text('name', "", array('maxlength' => 70, 'size' => 40, 'onblur' => "check('name');"));

but when I look into page source I see this:
<label for="name">Name: </label>
<input id="name" type="text" name="name" value="" maxlength="70" size="40" onblur="check('name');" maxlength="70" size="40" onblur="check('name');" class="ccm-input-text" />

see, I have double the 'maxlength', double the 'size' and double the 'onblur'. In other words, whatever is in the array is repeated. Do you know why?

Thank you.

linuxoid