Closed
Bug 163912
Opened 22 years ago
Closed 2 years ago
clicking link in label also activates form element
Categories
(Core :: Layout: Form Controls, defect, P3)
Core
Layout: Form Controls
Tracking
()
RESOLVED
WORKSFORME
mozilla1.4alpha
People
(Reporter: jruderman, Unassigned)
References
()
Details
(Whiteboard: [jk-anchorevent])
Attachments
(3 files, 1 obsolete file)
Clicking a link inside a <label> element also activates the form element. For a
textarea, it just focuses the textarea, but for a checkbox, it checks or
unchecks the box. Neither the HTML 4 spec nor the w3c validator disallows links
inside labels.
Comment 2•22 years ago
|
||
Looks to me like this is fixed (WinXP 2002121008), can you retest?
Assignee: jkeiser → form
Whiteboard: [jk-anchorevent]
Comment 3•22 years ago
|
||
This is a more minimal testcase. Clicking on the label does not click the
corresponding checkbox.
Reporter | ||
Comment 4•22 years ago
|
||
The original testcase used name= where it should have used id=, so the <label
for=blah> wasn't pointing to the checkbox.
With this new testcase, I still see the bug in Mozilla 12/23 on Windows XP.
Reporter | ||
Updated•22 years ago
|
Attachment #109509 -
Attachment is obsolete: true
Reporter | ||
Comment 5•22 years ago
|
||
Back to jkeiser (assuming you got reassigned to nobody because you couldn't
reproduce).
Assignee: form → jkeiser
Comment 6•22 years ago
|
||
This should basically be fixed by the event stuff jkeiser's working on, no?
Comment 7•22 years ago
|
||
Yeah, probably. Setting dependent on that bug. It does bring something up
though: obviously the label is not preventing default when it sends the click
on, and it really should. However, until we reverse the flow of default
actions, that will only make this situation worse. What should really happen is
the link should just be clicked.
Priority: -- → P3
Target Milestone: --- → mozilla1.4alpha
Comment 8•19 years ago
|
||
hate to poke a bug, but *poke*
this has come up in conversation, and it also appears on camino (trunk) and
deerpark OS X so updating hardware/OS
OS: Windows 2000 → All
Hardware: PC → All
Comment 9•19 years ago
|
||
(In reply to comment #8)
> hate to poke a bug, but *poke*
>
> this has come up in conversation, and it also appears on camino (trunk) and
> deerpark OS X so updating hardware/OS
Poke probably has no effect.
FYI - The owner of record john@johnkeiser.com is inactive it seems. Perhaps someone is watching all his assignments but it's impossible to tell from the bug. Of 117 or so bugs assigned, only a couple got meaningful comments (from anyone) in the past year.
What may be needed is a new champion and action on Bug 185758. If no one replies here (and no one has) you might check developer IRC to see if anything is in progress or planned.
FWIW, assigning to default owner.
Assignee: john → nobody
QA Contact: tpreston → layout.form-controls
Comment 10•19 years ago
|
||
*** Bug 327683 has been marked as a duplicate of this bug. ***
Comment 11•18 years ago
|
||
(In reply to comment #0)
> Clicking a link inside a <label> element also activates the form element. ....
> Neither the HTML 4 spec nor the w3c validator disallows links inside labels.
works same in IE.
Comment 12•17 years ago
|
||
Does not work the same in IE (7), nor Opera.
This bug needs more attention... it's a major accessibility problem.
Comment 13•17 years ago
|
||
Comment 16•15 years ago
|
||
Also affects the current layout of addons.mozilla.org.
Checkbox "Let me install this experimental add-on" is unexpectedly checked by clicking "What's this?"
Comment 17•15 years ago
|
||
The a.m.o. problem is Bug 530194.
Comment 18•7 years ago
|
||
Is this still a problem? In Edward Welker’s testcase (https://bug163912.bmoattachments.org/attachment.cgi?id=308365) the checkbox doesn’t change checked state when the link is clicked.
Updated•2 years ago
|
Severity: minor → S4
Comment 19•2 years ago
|
||
The severity field for this bug is relatively low, S4. However, the bug has 3 duplicates.
:emilio, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Flags: needinfo?(emilio)
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(emilio)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•