Posted by Nik Coughlin on 06/27/07 04:01
nick wrote:
> Hi
>
> Can anybody tell me why this doesn't work in Firefox?
>
> sel.options[sel.options.length] = new Option("\u0020\u0020-
> \u0020\u0020Option 1", 1);
>
> Basically I'm trying to indent some options but Firefox refuses to
> show those spaces!
>
> Thanks for any help.
Sounds like Firefox is calling some sort of trim method on the string
internally, but that's just a guess
Navigation:
[Reply to this message]
|