User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/2008070208 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/2008070208 Firefox/3.0.1 Calling the focus method of the file element should set focus to the element's browse button. Reproducible: Always Steps to Reproduce: 1. Add an <input id=f1 type=file> element to the body 2. Call document.getElementById("f1").focus() in script Actual Results: Focus is set to the document body. Expected Results: Focus should be set to the element's Browse button.
Summary: [object HTMLInputElement].focus() does not set focus to the input → [object HTMLInputElement].focus() does not set focus to the element
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 345195
This isn't the same as bug 345195. That bug detailed the problem of not being able to tab to a file element. Bug 345195 has been fixed. The problem outlined in this bug still remains.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → layout.form-controls
I don't know how serious a regression it is, or when it broke, but it could affect some sites. fileInput.focus() should focus the browse button.
This bug should have been fixed by 178324.
Status: NEW → RESOLVED
Last Resolved: 11 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.