[Webkit-unassigned] [Bug 64913] New: dispatchEvent should raise INVALID_STATE_ERR, not DISPATCH_REQUEST_ERR, if its argument is being dispatched

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 17:49:47 PDT 2011


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

           Summary: dispatchEvent should raise INVALID_STATE_ERR, not
                    DISPATCH_REQUEST_ERR, if its argument is being
                    dispatched
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.ht
                    ml#dom-eventtarget-dispatchevent
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dominicc at chromium.org
                CC: annevankesteren+webkit at gmail.com,
                    dominicc at chromium.org


Bug 64150 made dispatchEvent raise DISPATCH_REQUEST_ERR if its argument is already being dispatched, per the DOM 3 Events spec:

<http://www.w3.org/TR/2011/WD-DOM-Level-3-Events-20110531/#events-EventTarget-dispatchEvent>

Raising an exception is right, however DOM Core specifies that it should raise INVALID_STATE_ERR:

<http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-eventtarget-dispatchevent>

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