Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1615446 [wpt PR 21789] - Revert "Remove inDocument check for emit…
…ting change events", a=testonly Automatic update from web-platform-tests Revert "Remove inDocument check for emitting change events" This reverts commit 07d811aaeb0724d0d019b8d6bdba3d5de1dc9a5e. The change this reverts fixed http://crbug.com/773680 which was intended to fire change events for detached radio and checkbox input elements when using input.dispatchEvent(new MouseEvent('click')), but also caused input.click() to fire change events. Although these may seem to be the same thing, firefox actually fires change events on input.dispatchEvent but not input.click(). WebKit, and chrome before the patch this reverts fire change events in neither of these cases. I will file an html spec issue to address this compat issue. For now, it seems important to stop firing these change events because it is getting more attention than the lack of change events. Bug: 773680, 1051482 Change-Id: Ia8217d34bf9a20c50ce008630e748a7dbda52c3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055590 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/master@{#741251} -- wpt-commits: 365db564379b12f979d4cd7139179c18d0bcc4fb wpt-pr: 21789
- Loading branch information