Closed Bug 190876 Opened 22 years ago Closed 16 years ago

disabled form elements kill dom events

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 218093

People

(Reporter: phoyt, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 As seen in the testcase (click on any text field), a disabled form element will kill onclick events in disabled form elements regardless of whether the event belongs to the element itself, or whether the event belongs to a container div. This applies to onMouseover events equally. Reading the w3c html spec, it doesn't look to me like this is the intention of disabled elements. I believe that only their usefulness as elements of the form is to be disabled, not their ability to handle events at all. Reproducible: Always Steps to Reproduce: 1. Open the URL above. 2. Click on each text field Actual Results: The non-disabled text fields will produce alerts when clicked upon. The disabled ones will not. In Internet Explorer, only the second disabled element will produce an alert -- the second row has the onclick event in the container while the first has it in the element itself. Expected Results: I expected Mozilla to behave like Internet Explorer. Also, I think it would be preferable if all form elements on the test case produced onclick events.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Depends on: 100085
Possible Dup of 218093?
Depends on: 218093
Depends on: 234455
*** Bug 330368 has been marked as a duplicate of this bug. ***
*** Bug 347537 has been marked as a duplicate of this bug. ***
*** Bug 347537 has been marked as a duplicate of this bug. ***
Assignee: saari → nobody
QA Contact: vladimire → events
Duping to bug 218093 as there's more information/testcase etc.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.