[Html-widget] HTML::Widget and Images inside the <form>
Brian Kirkbride
brian.kirkbride at deeperbydesign.com
Thu Jul 20 19:44:45 CEST 2006
Robert 'phaylon' Sedlacek wrote:
> Krzysztof Krzyzaniak said:
>
>> hack is because you cannot put HTML content into span element.
>
> The CPAN Version of H:W creates a HTML::Element object for the <span> and
> inserts the content with push_content. So it /should/ be possible to just
> supply a HTML::Element object (for the <img> for example) and that would
> be in the span. IIRC it does this with labels as well.
>
> The remaining question (for the devs) is, is this intended or a side
> effect that could change?
>
>
> p
>
Both of these techniques will work, though I've used Krzysztof's
template based hack more lately. I felt that it was slightly
less ugly than creating the specific HTML elements in my controller.
I think it would be nice for HTML::Widget to allow Elements from
outside of the HTML::Widget:: namespace, using +My::App::Radio or
the like. I'll probably work up a patch for that at some point.
Best,
Brian
More information about the Html-widget
mailing list