Bug 64913

Summary: dispatchEvent should raise INVALID_STATE_ERR, not DISPATCH_REQUEST_ERR, if its argument is being dispatched
Product: WebKit Reporter: Dominic Cooney <dominicc>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: annevk, ap, dominicc
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-eventtarget-dispatchevent

Dominic Cooney
Reported 2011-07-20 17:49:47 PDT
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>
Attachments
Dominic Cooney
Comment 1 2011-07-31 21:54:42 PDT
Note You need to log in before you can comment on or make changes to this bug.