Summary: | <input> of type=checkbox,radio,file doesn't fire `input` events | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Rebert <webkit> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ashvayka, d, jonlee, m.goleb+bugzilla, m.kurz+webkitbugs, rniwa, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | HasReduction, InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Mac | ||
OS: | OS X 10.11 | ||
URL: | http://jsbin.com/jojoji/edit?html,output | ||
See Also: |
http://code.google.com/p/chromium/issues/detail?id=534245 https://bugzilla.mozilla.org/show_bug.cgi?id=1206616 |
Description
Chris Rebert
2015-09-21 01:41:54 PDT
Erm, obviously I meant Safari rather than Chrome in the Steps to Reproduce. HTML spec bug: https://github.com/whatwg/html/issues/601 Firefox 49 now fires these events. Some tests added at http://w3c-test.org/html/semantics/forms/the-input-element/checkbox-click-events.html The Chrome team marked that bug as fixed as well with Chrome 66: https://bugs.chromium.org/p/chromium/issues/detail?id=534245#c18 Mass move bugs into the DOM component. (In reply to Chris Rebert from comment #0) > 1. Open http://jsbin.com/jojoji/edit?html,output in Chrome. (In reply to Domenic Denicola from comment #5) > Some tests added at > http://w3c-test.org/html/semantics/forms/the-input-element/checkbox-click- > events.html As of Safari 13.1, jsbin.com example works as expected (for all <input> types) and web platform tests do pass. More specific details on the fixes: Starting with Safari 12.1 the radio inputs and checkbox inputs fire “click”, “input”, and “change” events in order when clicked. See https://bugs.webkit.org/show_bug.cgi?id=190223 https://trac.webkit.org/changeset/236779/webkit https://webkit.org/blog/8419/release-notes-for-safari-technology-preview-67/ -> "Fixed radio inputs and checkbox inputs to fire “click”, “input”, and “change” events in order when clicked" Preview 67 was mentioned in the 12.1 blog post here (see bottom): https://webkit.org/blog/8718/new-webkit-features-in-safari-12-1/ Starting with Safari 13.1 finally the file input fires an input event before the change event: https://bugs.webkit.org/show_bug.cgi?id=204292 https://trac.webkit.org/changeset/252768/webkit https://webkit.org/blog/9672/release-notes-for-safari-technology-preview-97/ -> "Changed the file input to fire an input event before the change event" Preview 97 was mentioned in the 13.1 blog post here (see bottom): https://webkit.org/blog/10247/new-webkit-features-in-safari-13-1/ |