returning false from select input onclick handler doesn't stop select list from opening

VERIFIED INCOMPLETE

Status

()

Firefox
General
VERIFIED INCOMPLETE
11 years ago
8 years ago

People

(Reporter: nottheoilrig, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)

<select name="foo" onclick="return false">
[...]

Clicking this select input will still open the select list. When JavaScript is enabled, we prefer clicking the select input to open our own widget, to assist users choosing from among hundreds of options. We can immediately close the select list by loosing its focus, but prefer not to display it altogether.

Thanks, Jack

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Comment 1

11 years ago
CLOSEME

HTML is invalid.

<select name="foo" onFocus="return false;"></select>

onfocus, onblur, onchange

Visit: http://www.w3schools.com/tags/tag_select.asp

Comment 2

11 years ago
Someone please change this to RESOLVED - INVALID as the HTML displayed by the reporter is invalid to begin with. Testing valid HTML provides results wanted by the reporter.
(Reporter)

Comment 3

11 years ago
Thanks for your help Ryan, I corrected the HTML, however it seems to me that returning false from the onfocus event handler doesn't stop the select list from opening either: http://cgi.sfu.ca/~jdbates/tmp/mozilla/200803030/test.html

When I tried with Firefox 2.0.0.12, clicking on the <select> input popped up a select list, despite onfocus="return false"

Comment 4

10 years ago
@Reporter, we have not heard back from you in a while, so I am closing this bug as INCOMPLETE. You can reopen this bug if more information becomes available. Some helpful information you can provide us is found at http://new.quality.mozilla.org/bug-writing-guidelines.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INCOMPLETE

Updated

8 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.