[Html-widget] strange error with HTMLEscape filter when installing latest from CPAN

Bernhard Graf html-widget at augensalat.de
Fri Dec 1 22:20:13 GMT 2006


Carl Franks wrote:

> > I find this feature *very* usefull!
> >
> > Otherwise you have no chance to indent <options> in a <select>
> > list:
> >
> > color
> >   red
> >   green
> >   blue
> > taste
> >   sweet
> >   bitter
> >
> > (done with leading &nbsp;)
>
> That would be better done with an optgroup form field.

No, for two reasons:
- Support for <optgroup> in all browsers is half-baken
- <optgroup> is only defined two-levels deep (main and sub)

Btw. - how do I do optgroups with HTML::Widget?

> Or you could use the mentioned ~literal element, which ensures your
> &nbsp; isn't encoded (if using HTML::Element for select options
> doesn't yet work, patches welcome!)

Hmm, tell us more about the ~literal element...
-- 
Bernhard Graf



More information about the Html-widget mailing list