Closed
Bug 400668
Opened 17 years ago
Closed 17 years ago
Including hidden form field before text form field inside label prevents focus from going to text field
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 213519
People
(Reporter: rjohobbs, Unassigned)
Details
Attachments
(1 file)
516 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.8; .NET CLR 2.0.50727) Gecko/20071008 Firefox/2.0.0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.8; .NET CLR 2.0.50727) Gecko/20071008 Firefox/2.0.0.8
If you have a label inside a form and within the label you have a hidden html input field before a text input field it is impossible to get the cursor in the input field to take keyboard focus.
Presumably this is because the standard says that the first input element in the label should receive focus, however as a hidden input field is not visible this does not make a lot of sense. I think it would make more sense for the first visible input element to receive the focus.
Reproducible: Always
Steps to Reproduce:
1. Open the attached test file in Firefox
2. Click in the input field
Actual Results:
The cursor briefly flashes in the input field but goes away again. Typing does not result in text appearing in the field.
Expected Results:
The cursor should remain in the text field and typing should input text into the field.
This is a problem as many frameworks for CMS/E Commerce etc. tend to add hidden fields to generated HTML and there is little control over how this is done in many circumstances.
Reporter | ||
Comment 1•17 years ago
|
||
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•