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)

All
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

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>
Assignee: karnaze → evaughan
Reassigning to Eric.
Status: NEW → ASSIGNED
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.
Target Milestone: M8 → M9
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.
Target Milestone: M9 → M10
Target Milestone: M10 → M12
mass-moving all m12 bugs to m13
Assignee: ckritzer → evaughan
QA Contact: phillip → ckritzer
Status: NEW → ASSIGNED
Target Milestone: M13 → M14
Blocks: 24700
putting on beta1 radar
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?
Hyatt,

You said you knew how to fix this right?
Assignee: evaughan → hyatt
Status: ASSIGNED → NEW
*** Bug 23118 has been marked as a duplicate of this bug. ***
*** Bug 26646 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Target Milestone: M14 → M16
Mass-moving all M16 non-feature bugs to M17, which we still consider to be 
part of beta2
Target Milestone: M16 → M17
*** Bug 32073 has been marked as a duplicate of this bug. ***
Adjust summary.
Hardware: Macintosh → All
Summary: <button> variants all appear disabled but execute script → Disabled buttons still execute handlers when clicked
wanted for beta1, now nominating for beta2
Keywords: nsbeta2
PDT would like a retest on this, ckritzer, could you retest or hand over to 
someone else to retest?
Whiteboard: [NEED INFO]
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.
marking WorksForMe...ckritzer, please verify with Win32 and Linux also.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
What? I see this all the time!
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
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!
Whiteboard: [NEED INFO]
Target Milestone: M17 → M18
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 ago24 years ago
Resolution: --- → FIXED
Updating QA contact.
QA Contact: ckritzer → bsharma
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.