The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;

use Test::More tests => 1;

use HTML::FormFu;

=pod

Using auto_fieldset, elements were incorrectly getting the form 
as their parent, not the fieldset

=cut

my $form = HTML::FormFu->new;

$form->auto_fieldset(1);

my $foo = $form->element( { name => 'foo' } );

ok( $foo->parent == $form->get_element );