[html-formfu] ContentButton name attribute

Carl Franks fireartist at gmail.com
Fri Nov 6 08:36:03 GMT 2009


2009/11/5 Nick Spacek <nick.spacek at gmail.com>:
> Hi folks,
>
> I'm looking to use the button attribute but found that the generated HTML
> contains a name attribute regardless of whether or not one is set. Looking
> at _Input.pm (the base class for other form elements including Button.pm) vs
> ContentButton.pm there is a clear difference: where _Input.pm checks if name
> is set before adding it to the HTML string, ContentButton.pm just goes ahead
> and adds it regardless.
>
> So, I'm wondering if there is a reason for this behavior, or if it is
> something that could be changed in the future?

Hi Nick,

HTML::FormFu outputs valid XHTML 1.0 which requires that all form
fields except 'submit' and 'reset' have a name attribute, so this
won't be changed.
Is the name attribute causing a problem in some way?

Carl



More information about the HTML-FormFu mailing list