[Webkit-unassigned] [Bug 109720] New: onChange Fires Twice if Focus Changed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 13 11:04:30 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=109720

           Summary: onChange Fires Twice if Focus Changed
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: http://codepen.io/codiform/pen/IGbCq
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Events
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: geoffrey.wiseman at gmail.com


If you add an onChange handler to a text box, then change the focus during onChange, then if you press tab to leave the textbox after making a change, the onchange will fire once; if you hit enter, it will fire twice, once for the enter and once for the loss of focus. Neither Firefox nor IE behave this way, and it seems like this related bug, https://bugs.webkit.org/show_bug.cgi?id=13857, fixed back in 2007, implies that this might be considered a bug in WebKit?

You can see an example of this in:
http://codepen.io/codiform/pen/IGbCq

If you press a<tab> in the textbox, you'll see an 'a' change event in the log text area. If you change 'a' to 'b' and hit the enter key, you'll see two change events in the log text area.

-- 
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