[html-formfu] FormFu produces invalid tags of "empty HTML elements"?

Mario Minati mario.minati at googlemail.com
Tue Mar 24 15:09:55 GMT 2009


You can use HTML::FormFu::Element::Image:

- type: Image
  src: path/to/my/image.png
  id: my_image
  attributes:
    alt: foo bar


Greets,

Mario Minati


Am Dienstag 24 März 2009 14:09:52 schrieb Jens Schwarz:
> 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"/>
>
> ?
>
> Thanks
>
> Jens





More information about the HTML-FormFu mailing list