Bug 67761
Summary: | REGRESSION: number input doesn't fire change event when user clicks on up/down arrows | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | darin, dglazkov, tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ryosuke Niwa
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Tamura
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.
Ryosuke Niwa
(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.
Kent Tamura
(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.
Ryosuke Niwa
(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.