Closed
Bug 47230
Opened 25 years ago
Closed 25 years ago
The onblur has no effect
Categories
(Core :: Layout, defect, P1)
Tracking
()
Future
People
(Reporter: bsharma, Assigned: rods)
Details
(Keywords: html4, relnote, testcase)
Attachments
(1 file)
|
734 bytes,
text/html
|
Details |
Build: 2000-07-28-12-M17
Following is the testcase.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- testcase: label_onblur.html -->
<!-- Expected result: Releasing the mouse up on the Last Name label should
activate the onblur attribute to display a dialog. -->
<TITLE>HTML Functional -- LABEL - ONBLUR</TITLE>
</head>
<body>
<p>Each of these fields are contained in a label element. The "Last Name"
element is using a onblur attribute. Clicking and releasing the mouse up
on the last name label will display a dialog.</p>
<form action="" method="post">
<label>First Name<input type="text" name="firstname">
</label>
<label onblur="alert('This label has been activated by the user')">Last
Name<input type="text" name="lastname">
</label>
</form>
</body>
</html>
Comment 1•25 years ago
|
||
Re-assigning bugs on Clayton's list opened between 7/29 and 8/4 to Kevin for
further triage.
Assignee: clayton → kmcclusk
Comment 2•25 years ago
|
||
Doesn't work with 4.x.
Rod: Do you know if label's have onblur handlers?
Assignee: kmcclusk → rods
| Assignee | ||
Comment 3•25 years ago
|
||
Yes, the spec shows that it should. I imagine the issue is that the focus goes
to the text field inside the label and the text field will probably generate an
onblur. That begs the question if a label has an onblur and the containing text
field has an onblur, would you get two onblur notifications, coming from each of
the elements? I would think yes.
I think the fix would be for each control that is issuing an onblur that it
needs to check to see if it is in a label and then have the label issue an
onblur. This would be a little bit of work. I am futuring this bug for now.
| Assignee | ||
Updated•25 years ago
|
Target Milestone: M22 → Future
Just converted the testcase from the initial bug report to an attachment
Keywords: testcase
This seems like a duplicate of 28657. If you don't think so, let me know. -d
*** This bug has been marked as a duplicate of 28657 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
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.
Description
•