Open Bug 646877 Opened 13 years ago Updated 1 year ago

Focus on input not working


(Firefox :: General, defect)

4.0 Branch
Windows Vista





(Reporter: aymeric, Unassigned)




User-Agent:       Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0

We think this is a duplicate of bug 642399 (valid for FF4 current release too) but it is really annoying so probably desserves to be reported twice, this is a new behaviour from FF4

When we click on the text of an input, the focus method does not work, if we click beside the text in the input, it works

Reproducible: Always

Steps to Reproduce:
Go on

Click on 'Ex: restaurant', click again on 'Ex: Restaurant' in the input, as you can see, no focus, try again and click beside the text, the input gets the focus

What we do for each input is simply :

xinput.onmousedown=function() {this.value='';this.focus();};
Version: unspecified → 4.0 Branch
The problem is still there after all this time with latest Nightly.

See :

The issue is not about focus, there is only a :

input.onmousedown=function() {if (this.value===example) {this.value=''}};

Doing such you don't get the focus on the input when you click, really annoying.
Summary: Focus method on input not working → Focus on input not working
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.