Firefox checkbox change\click event order is non-standard

UNCONFIRMED
Unassigned

Status

()

Core
DOM: Events
UNCONFIRMED
5 years ago
2 years ago

People

(Reporter: steve, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130215130331

Steps to reproduce:

Demo:
http://jsbin.com/anafev/5/edit

Run this in FF, webkit, and IE

Clicking a checkbox fires 2 javascript events (good)...ordering(bad):


Actual results:

Event Order:
Click
Change



Expected results:

Event Order:
Change
Click

It's causing issues with our MVVM components...so I don't know if there is a standard and FF follows it, but when everyone else does it the other way...we become non-standard.
Assignee: general → nobody
Component: JavaScript Engine → DOM: Events

Comment 1

3 years ago
Filed a relevant bug against the HTML spec:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28985

Comment 2

2 years ago
Per https://github.com/w3c/web-platform-tests/pull/2539 , Firefox's current event order (click, then change) is correct with respect to the HTML spec.
No modification is needed.

Updated

2 years ago
OS: Windows 8 → All
Hardware: x86_64 → All
Version: 19 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.