Closed Bug 853449 Opened 9 years ago Closed 9 years ago

Dispatching an event that's already being dispatched should throw InvalidStateError

Categories

(Core :: DOM: Events, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: ayg, Assigned: ayg)

Details

Attachments

(1 file)

Same exact idea as bug 687486.  The spec <http://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent> says InvalidStateError here, in contrast to previous specs that say an EventException should be thrown.  At this point, DOM 3 Events agrees with InvalidStateError <http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-EventTarget-dispatchEvent>.

Tested by <http://w3c-test.org/webapps/DOMCore/tests/submissions/Ms2ger/EventTarget-dispatchEvent.html>.
Flags: in-testsuite+
Comment on attachment 727681 [details] [diff] [review]
Patch

I wonder if there is already a bug open for this.
Attachment #727681 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/2735d922d138
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.