Firefox option indentation

Discussion in 'HTML' started by nick, Jun 27, 2007.

  1. nick

    nick Guest

    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.
    nick, Jun 27, 2007
    #1
    1. Advertising

  2. nick

    Nik Coughlin Guest

    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
    Nik Coughlin, Jun 27, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Julien ROUZIERES

    g++ -pg option and -shared option

    Julien ROUZIERES, Dec 21, 2004, in forum: C++
    Replies:
    1
    Views:
    714
    GianGuz
    Dec 21, 2004
  2. Cas
    Replies:
    5
    Views:
    790
    Kevin Jones
    Aug 28, 2006
  3. Kevin Blount

    page.aspx?option - how to detect "option"

    Kevin Blount, Nov 28, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    604
    =?Utf-8?B?RWVyYWo=?=
    Nov 28, 2006
  4. Jesse B.
    Replies:
    2
    Views:
    189
    Josh Cheek
    Mar 27, 2010
  5. nick

    Firefox option indentation

    nick, Jun 27, 2007, in forum: Javascript
    Replies:
    4
    Views:
    96
Loading...

Share This Page