[Webkit-unassigned] [Bug 36314] New: Text field "onchange" event is triggered if actual value unchanged
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 18 11:47:28 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=36314
Summary: Text field "onchange" event is triggered if actual
value unchanged
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ivo.krab at rvponp.fgov.be
When the user types into a text field (input type="text" or textarea) something
that does not actually change the value of the field (i.e. the typed value is
identical to the original value), blurring the field triggers the "onchange"
event anyway.
This is unintuitive behavior and inconsistent with other browsers (FireFox, IE,
although Opera behaves the same).
"onchange" should only be triggered if the new value is different from the
original one.
In the attached test case, for comparison there is also a <select>: if one goes
through the list and ends up seleting the same value as before, no onchange is
triggered, only if the value actually changed.
For the text input and textarea, though, typing an "l" over the last letter "l"
results in an "onchange" after moving the focus away.
Confirmed on r56152.
--
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