Closed Bug 273569 Opened 20 years ago Closed 20 years ago

Focus changes from text-field to radiobutton

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 229925

People

(Reporter: box, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If you go to the site mentioned, and you want to add your own ammount of euro's,
the focus jumps from the text-field to the radiobutton. According to the W3C
validator this site is correct.

Reproducible: Always
Steps to Reproduce:
1. Open the site https://www.e-cumlaude.com/secure/d/bosk/module.php
2. Click on the Euro ammount text-field (right upper corner)
3. See that the focus changes (it becomes very hard to add your numbers in the
text-field)

Actual Results:  
You have to be very fast while adding you numbers in the text-field (before the
focus jumps).

Expected Results:  
Remain the focus at the text-field after the text-field has been clicked on.

W3C:

The document located at <https://www.e-cumlaude.com/secure/d/bosk/module.php> 
was checked and found to be valid HTML 4.01 Transitional.
<label for="bedrag_cust">
  <input id="bedrag_cust" name="bedrag" value="cust" type="radio">
  € <input name="bedrag_c" size="5" maxlength="7" type="text">
</label>

Reporter: if you want to contact the site and tell them how to fix the problem
(or if it's yours): <label> should only contain one form element, since its
purpose is to make the label transfer focus to the actual form control. Having
the <input> inside the label isn't helping anything. 

*** This bug has been marked as a duplicate of 229925 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.