[Webkit-unassigned] [Bug 215461] New: <input disabled> does not fire click events after dispatchEvent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 13 12:53:03 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215461

            Bug ID: 215461
           Summary: <input disabled> does not fire click events after
                    dispatchEvent
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: saschanaz at outlook.com

Created attachment 406533

  --> https://bugs.webkit.org/attachment.cgi?id=406533&action=review

onclick behavior test

Steps to reproduce the problem:
Try this:

```js
input = document.createElement("input");
input.disabled = true;
input.onclick = console.log
input.dispatchEvent(new MouseEvent("click"));
```

What is the expected behavior?
A click event should fire after a dispatchEvent call

What went wrong?
It never fires on a disabled input element.

Did this work before? N/A 

Does this work in other browsers? Yes, in Firefox

It must fire onclick per the spec. Related discussion: https://github.com/whatwg/html/pull/5805#issuecomment-672960163

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200813/4c0992e4/attachment.htm>


More information about the webkit-unassigned mailing list