);
is(
- $form->input('', '', {disabled => 0, something => undef, class => undef, style => ''}),
+ $form->input('', '', {
+ disabled => 0,
+ something => undef,
+ class => undef,
+ style => '',
+ name => 'ignore',
+ value => 'overrides',
+ }),
'<input name="" type="text" value="">',
'input with empty attributes'
);
is(
- $form->input(undef, undef, {name => 'override', value => 'override'}),
- '<input type="text">',
- 'ignore input overrides'
+ $form->input(undef, undef, {name => '0', value => '0'}),
+ '<input id="0" name="0" type="text" value="0">',
+ 'input overrides'
);
is(