[html-formfu] FormFu produces invalid tags of "empty HTML
elements"?
Carl Franks
fireartist at gmail.com
Tue Mar 24 13:29:26 GMT 2009
2009/3/24 Jens Schwarz <blacky6767 at gmx.de>:
> Hi there,
>
> I want to add an "empty HTML element" to my FormFu form (here <img>) and therefor added something like ...
>
> - type: Block
> tag: img
> id: my_image
> attributes:
> alt: foo bar
> src: path/to/my/image.png
>
> ... to my yml.
> In the (X)HTML source this results to ...
>
> <img alt="foo bar" id="my_image" src="path/to/my/image.png"></img>
>
> ... which seems invalid (X)HTML to me (note the trailing "</img>"). How can I make FormFu produce valid ...
>
> <img alt="foo bar" id="my_image" src="path/to/my/image.png"/>
You'll need to create a sub-class of HTML::FormFu::Element::_NonBlock
Cheers,
Carl
More information about the HTML-FormFu
mailing list