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

From: Robert Downes (nospamplease_at_see.my.signature.con)
Date: 01/07/04


Date: Wed, 07 Jan 2004 04:56:33 +0000

knocte wrote:

> 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.

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 document
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"


Relevant Pages