use strict; use warnings; use Test::More tests => 2; use HTML::FormFu; =pod The input class was getting " text" appended again. Fixed by cloning the elements in HTML::FormFu::result() =cut my $form = HTML::FormFu->new({ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } }); $form->element('Text')->name('foo'); $form->element('Text')->name('bar'); my $xhtml = <
EOF # 1st result { $form->process( {} ); is( "$form", $xhtml, 'stringified form' ); } # 2nd result { $form->process( {} ); is( "$form", $xhtml, 'stringified form' ); }