Bug 67761 - REGRESSION: number input doesn't fire change event when user clicks on up/down arrows
Summary: REGRESSION: number input doesn't fire change event when user clicks on up/dow...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 21:53 PDT by Ryosuke Niwa
Modified: 2011-09-08 10:50 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2011-09-07 21:53:53 PDT
Reproduction:
1. Open http://simple-rte.rniwa.com/?editor=%3Cinput%20type%3D%22number%22%20id%3D%22n%22%20value%3D%221%22%20onchange%3D%22alert%28%27hi%27%29%22%3E&designmode=false&script=document.getElementById%28%27editor%27%29.focus%28%29%3B
2. Step up/down on the input element
3. Move focus to elsewhere

On shipped version of Safari, "hi" is shown.
On ToT WebKit, "hi" is never shown.
Comment 1 Kent Tamura 2011-09-07 22:08:16 PDT
I think it's intentional.  http://code.google.com/p/chromium/issues/detail?id=51836
However, some developers asked 'change' event instead of 'input' event.
Comment 2 Ryosuke Niwa 2011-09-07 22:12:36 PDT
(In reply to comment #1)
> I think it's intentional.  http://code.google.com/p/chromium/issues/detail?id=51836
> However, some developers asked 'change' event instead of 'input' event.

I think that bug is about always firing change event instead of input event. This bug is about change event not firing when focus is removed from the element.
Comment 3 Kent Tamura 2011-09-07 22:18:07 PDT
(In reply to comment #2)
> I think that bug is about always firing change event instead of input event. This bug is about change event not firing when focus is removed from the element.

Oh, I'm sorry. I overlooked the step 3.

But, "hi" was shown with WebKit r94744.
Comment 4 Ryosuke Niwa 2011-09-07 22:29:55 PDT
(In reply to comment #3)
> Oh, I'm sorry. I overlooked the step 3.
> 
> But, "hi" was shown with WebKit r94744.

Mn... odd. Now I can't reproduce it either.