[Webkit-unassigned] [Bug 149398] New: <input> of type=checkbox, radio, file doesn't fire `input` events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 21 01:41:54 PDT 2015


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

            Bug ID: 149398
           Summary: <input> of type=checkbox,radio,file doesn't fire
                    `input` events
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at chrisrebert.com

Per the following portions of the HTML specification:
* https://html.spec.whatwg.org/multipage/forms.html#checkbox-state-(type=checkbox):event-input-input
* https://html.spec.whatwg.org/multipage/forms.html#radio-button-state-(type=radio):event-input-input
* https://html.spec.whatwg.org/multipage/forms.html#file-upload-state-(type=file):event-input-input

when the user changes the checkedness of an <input type="checkbox"> or <input type="radio">, or when a user changes the selected files of an <input type="file">, the browser is supposed to fire an `input` event (https://developer.mozilla.org/en-US/docs/Web/Events/input ) at that <input> element.
Safari/WebKit doesn't currently comply with this, and doesn't fire `input` events in these cases.

Steps to reproduce:
1. Open http://jsbin.com/jojoji/edit?html,output in Chrome.
2. Check the checkbox.
3. Click one of the two radio buttons.
4. Click "Choose File" and select a file.

Expected results:
After each of steps 2 thru 4, an alert box with the message "input!" should be displayed (because an `input` event should be fired at the respective <input> element).

Actual results:
No alert boxes are shown because no `input` events were fired.

Other info:
Equivalent Chrome bug: https://code.google.com/p/chromium/issues/detail?id=534245

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150921/5a643d9b/attachment-0001.html>


More information about the webkit-unassigned mailing list