Closed Bug 338303 Opened 18 years ago Closed 13 years ago

cannot click radio button in form with nested labels

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 213519

People

(Reporter: ted, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

Under some conditions, it is impossible to select a radio button by clicking on that button directly.

This nesting works:
fieldset - label - label - radiobutton

This nesting does not:
fieldset - label - span - label - radiobutton


Reproducible: Always

Steps to Reproduce:
1. Load page in "Additional Information" into browser.
2. Try to click directly on second radio button
3. Notice that, try as you might, clicking on second radio button doesn't work - it selects the first button
4. Remove the span (and it's closing tag) marked by the HTML comment
5. Notice that you can click on the second radio button directly, as expected
Actual Results:  
Found behaviour: When the following page is loaded into the browser, you cannot click on the radio button for the second item to select it directly.  You can, however, click on the label for that button to select that button.  The page is valid XHTML 1.0 Strict.

Expected Results:  
Expected behavior: Clicking on the second label or on the second radio button directly should select that radio button, not the first one.

I have attached a testcase.
Attached file HTML Testcase
This is the HTML Testcase, which validates as XHTML 1.0 Strict.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060517 Minefield/3.0a1
Does not work at all in trunk. You can only choose "Yes".
Component: General → Layout: Form Controls
Product: Firefox → Core
Version: unspecified → Trunk
QA Contact: general → layout.form-controls
Please retest once bug 213519 is fixed.
Depends on: 213519
The bug is still happening in Seamonkey 1.5a rv:1.9a5pre build 2007042709 under XP Pro SP2.

CONFIRMING
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Still broken in 2.0.0.3 ubuntu-edgy.

With this build:  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy)

Now I can actually select the "No" field, but only by clicking on its label.  If you click on the actual radio button circle for "No" itself, it selects "Yes."  This is an improvement - before (it was almost a year ago - hard to remember for sure) it was impossible to select the "No" field at all.  
Changing OS to all - it's a problem on Ubuntu Edgy and XP Pro SP2 from what I read above.
OS: Windows XP → All
This is obviously a duplicate of bug 213519.
Status: NEW → RESOLVED
Closed: 13 years ago
No longer depends on: 213519
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: