[Webkit-unassigned] [Bug 85655] New: "input" event is fired when the value doesn't change
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 4 13:14:52 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=85655
Summary: "input" event is fired when the value doesn't change
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pimvdb at live.nl
Created an attachment (id=140301)
--> (https://bugs.webkit.org/attachment.cgi?id=140301&action=review)
Test case
The HTML5 specification says that the "input" event only applies when the value of an input element *changes*:
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#event-input-input
Currently, the event is also fired when replacing characters with the same sequence of characters, by means of e.g. pasting/dragging. The specification says these actions should not fire the "input" event:
"Some user interactions do not cause changes to the value, e.g. (...) replacing some text in the field with text from the clipboard that happens to be exactly the same text."
To reproduce, load the test case, and type something in the input element. Then do "select all", "copy" and "paste" successively. The value won't change, but the "input" event is fired.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list