2009/3/24 Jens Schwarz <blacky6...@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 _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu