Closed
Bug 7552
Opened 25 years ago
Closed 24 years ago
Disabled buttons still execute handlers when clicked
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: Brade, Assigned: hyatt)
References
Details
(Keywords: polish)
Given the following html, notice that clicking on any of the buttons will cause a
javascript error (in this case, a missing handler). The problem is that the
buttons have all been disabled (so no JavaScript should execute).
<html>
<head>
<title> select disable test </title>
<script>
function thewronghandler()
{
}
</script>
</head>
<body>
<form>
<button type="button" id="b1" disabled onclick="handler1()">Button</button>
<br/>
<button type="submit" id="b2" disabled onclick="handler2()">Submit</button>
<br/>
<button type="reset" id="b3" disabled onclick="handler3()">Reset</button>
</form>
</body>
</html>
Updated•25 years ago
|
Assignee: karnaze → evaughan
Comment 1•25 years ago
|
||
Reassigning to Eric.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Target Milestone: M8
Moving all Widget Set bugs, past and present, to new HTML Form Controls
component per request from karnaze. Widget Set component will be retired
shortly.
Updated•25 years ago
|
Target Milestone: M8 → M9
Comment 3•25 years ago
|
||
I have to talk with pixley to figure this out. It appears to be more difficult
because all this logic is done at the DOM node level.
Updated•25 years ago
|
Target Milestone: M9 → M10
Updated•25 years ago
|
Target Milestone: M10 → M12
Comment 4•25 years ago
|
||
mass-moving all m12 bugs to m13
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M13 → M14
Comment 5•25 years ago
|
||
putting on beta1 radar
Comment 6•25 years ago
|
||
O-kaaaaaaaaaaaaaaaaaaaaaaay...this works for me on:
- Linux6 2000-02-08-17 Commercial build
- Win98 2000-02-08-17 Mozilla build
- MacOS86 2000-02-08-17 Mozilla build
Should we mark it as such or do you want to keep it open still?
Comment 7•25 years ago
|
||
Hyatt,
You said you knew how to fix this right?
Assignee: evaughan → hyatt
Status: ASSIGNED → NEW
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M14 → M16
Comment 10•25 years ago
|
||
Mass-moving all M16 non-feature bugs to M17, which we still consider to be
part of beta2
Target Milestone: M16 → M17
Assignee | ||
Comment 11•25 years ago
|
||
*** Bug 32073 has been marked as a duplicate of this bug. ***
Comment 12•25 years ago
|
||
Adjust summary.
Hardware: Macintosh → All
Summary: <button> variants all appear disabled but execute script → Disabled buttons still execute handlers when clicked
Comment 14•24 years ago
|
||
PDT would like a retest on this, ckritzer, could you retest or hand over to
someone else to retest?
Whiteboard: [NEED INFO]
Comment 15•24 years ago
|
||
Using Chris K's JS sample, I can't reproduce the problem as described. The
buttons appear dimmed in the window and clicking on them doesn't cause a JS error
to be displayed. Tested May 22 Mac build (2000052208) under Mac OS 8.5 and Mac OS
9.0.
Comment 16•24 years ago
|
||
marking WorksForMe...ckritzer, please verify with Win32 and Linux also.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Comment 17•24 years ago
|
||
What? I see this all the time!
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 18•24 years ago
|
||
To repro: open Open Web Location. Since the field is empty, note that the Open
button is disabled. Click the Open button, and the dialog is dismissed. Wrongo!
Reporter | ||
Comment 19•24 years ago
|
||
This bug is for html form controls; not for xul widgets.
Hyatt's xul widget bug is #30644.
Resolve this bug as fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 21•24 years ago
|
||
Verified on
Build: 2000092711 MN6
Platform: WinNT
Build: 2000092909 MN6
Platform: Linux
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•