Firefox option indentation

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.

Re: Firefox option indentation

nick wrote:
Quoted text here. Click to load it

Sounds like Firefox is calling some sort of trim method on the string
internally, but that's just a guess

Site Timeline