Closed Bug 68659 Opened 24 years ago Closed 24 years ago

If <INPUT TYPE="CheckBox"> is part of a <A HREF>, you can't check of the checkbox

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 62151

People

(Reporter: cst, Assigned: clayton)

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.7) Gecko/20010109
BuildID:    2001010901

If you try and check of the checkbox in the following code, you will get the
messagebox. In IE and NS 4.X you didn't get the message.

<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM>
<A HREF="JavaScript:alert('Hello');"><INPUT TYPE="Checkbox" NAME="Check"> Check
me</A>
</FORM>
</BODY>
</HTML>

Reproducible: Always
Steps to Reproduce:
1. Check of the checkbox
2.
3.

Actual Results:  I got the messagebox.

Expected Results:  I just wanted to have the checkbox checked of.
This looks fine to me, it seems that IE and NS 4.x did it wrong.
Event bubbling??
I'd say Mozilla is doing the correct thing. Clicking on anything inside a <a>
tag triggers the loading of the href attribute... not sure how this is wrong
Whiteboard: DUPEME
well, we already have a bug on this.  marking duplicate.

*** This bug has been marked as a duplicate of 62151 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
verf of dupe of bug 62151 (Can't check checkbox when within an...).
Status: RESOLVED → VERIFIED
SPAM. HTML Element component deprecated, changing component to Layout. See bug
88132 for details.
Component: HTML Element → Layout
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: