Professional Web Applications Themes

[Mozilla+JavaScript] Shouldn't this bug be confirmed? - PHP Development

I come across with this topic because it is more or less related to PHP. Sometimes we implement a PHP script that displays a form which has a SELECT that should have a value by default. If the SELECT input control has a size bigger than "1" and the option selected is not in the first elements (so as the size of the SELECT doesn't allow to view the item selected), Mozilla browser won't scroll the SELECT control to the item selected! However, IE6 has this behaviour. There is a bug in Mozilla about this issue, and I cannot figure ...

  1. #1

    Default [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    I come across with this topic because it is more or less related to PHP.

    Sometimes we implement a PHP script that displays a form which has a
    SELECT that should have a value by default. If the SELECT input control
    has a size bigger than "1" and the option selected is not in the first
    elements (so as the size of the SELECT doesn't allow to view the item
    selected), Mozilla browser won't scroll the SELECT control to the item
    selected! However, IE6 has this behaviour.

    There is a bug in Mozilla about this issue, and I cannot figure why this
    bug isn't yet, at least, CONFIRMED.

    So, if you are interested in this bug, plase, click the URL below and
    vote for the bug (to vote bugs you need to register a bugzilla account,
    which can spend only 5 minutes of your time).

    http://bugzilla.mozilla.org/show_bug.cgi?id=224023

    Regards,

    knocte


    PS: If you don't use Windows XP, it would also be useful to know if this
    bug is reproducible in other operating systems. If yes, please post a
    comment about it.

    knocte Guest

  2. #2

    Default Re: [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    knocte wrote:
     

    If I'm understanding your description correctly, the following example
    code should produce the error that is troubling you:

    <html>
    <head>
    <title>
    Test SELECT element
    </title>
    <meta name="GENERATOR" content="Arachnophilia 5.2" />
    <meta name="FORMATTER" content="Arachnophilia 5.2" />
    </head>

    <body bgcolor="#ffffff" text="#000000" link="#0000ff"
    vlink="#800080" alink="#ff0000">

    <select size="4">
    <option>Hello</option>
    <option>Goodbye</option>
    <option selected="true">Bonjour</option>
    <option>Au revoir</option>
    <option>Bon soir</option>
    <option>Whatever</option>
    </select>

    </body>
    </html>

    However, I get a select box that offers a scrollbar, and I can select
    any of the elements listed in my example.

    Have I understood the problem correctly?

    Are you writing sound HTML/XHTML code? (With closing tags for all
    elements that require them; and quotes around all element properties?)
    Mozilla is a standards-based browser, so it requires good doent
    structures. IE6 isn't worth using to test Web pages.

    What version of Mozilla are you using?

    Have I misunderstood the problem? (The title mentions Javascript, but
    your description doesn't.)
    --
    Bob
    London, UK
    echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "obe.uk"
    Robert Guest

  3. #3

    Default Re: [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    knocte wrote:
     

    How is this related to PHP at all? This is definately an HTML/browser
    issue, nothing to do with PHP.

    --
    Justin Koivisto - com
    PHP POSTERS: Please use comp.lang.php for PHP related questions,
    alt.php* groups are not recommended.

    Justin Guest

  4. #4

    Default Re: [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    Robert Downes escribió: 


    You have misunderstood the problem. The requirements for this bug to be
    reproduced are:

    - Have a SELECT element with size="x" (x bigger than 1).
    - Have an item in the select whose position is bigger than x.
    - Have the SELECT element inside a TD tag.
    - Have the attribute align="center" inside the TD tag.

    For example:

    <html>
    <head>
    <title>
    Test SELECT element
    </title>
    <meta name="GENERATOR" content="Arachnophilia 5.2" />
    <meta name="FORMATTER" content="Arachnophilia 5.2" />
    </head>

    <body bgcolor="#ffffff" text="#000000" link="#0000ff"
    vlink="#800080" alink="#ff0000">
    <table>
    <tr>
    <td align="center">
    <select size="2">
    <option>Hello</option>
    <option>Goodbye</option>
    <option>Bonjour</option>
    <option>Au revoir</option>
    <option>Bon soir</option>
    <option selected="true">Whatever</option>
    </select>
    </td>
    <td>
    Other TD
    </td>
    </tr>
    <tr>
    <td>
    Other TD
    </td>
    <td>
    Other TD
    </td>
    </tr>

    </body>
    </html>

    If you display this page on Mozilla, the SELECT won't scroll to the last
    option.

    Try just to remove the align="center" attribute to see the correct
    behaviour.

    Regards,

    knocte

    knocte Guest

  5. #5

    Default Re: [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    knocte wrote: 
    >
    >
    >
    > You have misunderstood the problem. The requirements for this bug to be
    > reproduced are:
    >
    > - Have a SELECT element with size="x" (x bigger than 1).
    > - Have an item in the select whose position is bigger than x.
    > - Have the SELECT element inside a TD tag.
    > - Have the attribute align="center" inside the TD tag.
    >
    > For example:
    >
    > <html>
    > <head>
    > <title>
    > Test SELECT element
    > </title>
    > <meta name="GENERATOR" content="Arachnophilia 5.2" />
    > <meta name="FORMATTER" content="Arachnophilia 5.2" />
    > </head>
    >
    > <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080"
    > alink="#ff0000">
    > <table>
    > <tr>
    > <td align="center">
    > <select size="2">
    > <option>Hello</option>
    > <option>Goodbye</option>
    > <option>Bonjour</option>
    > <option>Au revoir</option>
    > <option>Bon soir</option>
    > <option selected="true">Whatever</option>
    > </select>
    > </td>
    > <td>
    > Other TD
    > </td>
    > </tr>
    > <tr>
    > <td>
    > Other TD
    > </td>
    > <td>
    > Other TD
    > </td>
    > </tr>
    >
    > </body>
    > </html>
    >
    > If you display this page on Mozilla, the SELECT won't scroll to the last
    > option.
    >
    > Try just to remove the align="center" attribute to see the correct
    > behaviour.[/ref]

    Using the code you supply above, I still can scroll down and select
    other items, even though there is no </table> closing tag.

    However, I am using a version of Mozilla that claims to be 1.7a, so
    possibly the problem you are seeing has been fixed in more recent code.
    --
    Bob
    London, UK
    echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "obe.uk"
    Robert Guest

  6. #6

    Default Re: [Mozilla+JavaScript] Shouldn't this bug be confirmed?

    Robert Downes escribió:
     
    >>
    >>
    >>
    >>
    >> You have misunderstood the problem. The requirements for this bug to
    >> be reproduced are:
    >>
    >> - Have a SELECT element with size="x" (x bigger than 1).
    >> - Have an item in the select whose position is bigger than x.
    >> - Have the SELECT element inside a TD tag.
    >> - Have the attribute align="center" inside the TD tag.
    >>
    >> For example:
    >>
    >> <html>
    >> <head>
    >> <title>
    >> Test SELECT element
    >> </title>
    >> <meta name="GENERATOR" content="Arachnophilia 5.2" />
    >> <meta name="FORMATTER" content="Arachnophilia 5.2" />
    >> </head>
    >>
    >> <body bgcolor="#ffffff" text="#000000" link="#0000ff"
    >> vlink="#800080" alink="#ff0000">
    >> <table>
    >> <tr>
    >> <td align="center">
    >> <select size="2">
    >> <option>Hello</option>
    >> <option>Goodbye</option>
    >> <option>Bonjour</option>
    >> <option>Au revoir</option>
    >> <option>Bon soir</option>
    >> <option selected="true">Whatever</option>
    >> </select>
    >> </td>
    >> <td>
    >> Other TD
    >> </td>
    >> </tr>
    >> <tr>
    >> <td>
    >> Other TD
    >> </td>
    >> <td>
    >> Other TD
    >> </td>
    >> </tr>
    >>
    >> </body>
    >> </html>
    >>
    >> If you display this page on Mozilla, the SELECT won't scroll to the
    >> last option.
    >>
    >> Try just to remove the align="center" attribute to see the correct
    >> behaviour.[/ref]
    >
    >
    > Using the code you supply above, I still can scroll down and select
    > other items, even though there is no </table> closing tag.
    >
    > However, I am using a version of Mozilla that claims to be 1.7a, so
    > possibly the problem you are seeing has been fixed in more recent code.[/ref]

    I am not saying that you can't scroll and select. I am saying that when
    you open the page the select must be scrolled before you do anything!

    Mozilla 1.7a? How can that be possible? Mozilla 1.6 Final is not
    released yet.

    Regards,

    knocte

    PS: If you still have more doubts about the bug, please refer to
    http://bugzilla.mozilla.org/show_bug.cgi?id=224023 to read the entire
    description of the bug.

    knocte Guest

Similar Threads

  1. Replies: 3
    Last Post: January 25th, 03:48 PM
  2. New IE 6 and IE 7 Security Bugs Confirmed by Microsoft!
    By Kevin John Panzke in forum Windows Vista
    Replies: 7
    Last Post: March 24th, 10:34 PM
  3. Javascript in Mozilla Firefox
    By jtousignant in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: October 20th, 01:13 PM
  4. We have a confirmed sighting of Teri Petit!
    By Chris_Cox@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 15
    Last Post: May 8th, 02:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139