[Webkit-unassigned] [Bug 93674] New: onchange is sent to <input type=radio> before onclick

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 9 18:39:10 PDT 2012


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

           Summary: onchange is sent to <input type=radio> before onclick
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: https://zewt.org/~glenn/test-webkit-radio-click-cancel
                    .html
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Events
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: glenn at zewt.org


When a radio button (or checkbox) is clicked, the onchange event is sent before onclick instead of after.

If onclick is defaultPrevented, the page has now received onchange in the temporary checked state, even though the "canceled activation steps" reset the checked state to false.

Opera and Firefox behave per spec: onclick is sent before onchange, and if onclick is stopped, the onchange event is never fired.  (Firing onclick is the activation behavior of the element, which happens after an uncancelled click.)

IE9 matches what WebKit is doing.

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