Event, CustomEvent, and EventTarget are globals and follow the DOM Standard.
Differences from browsers
- There is no DOM tree: dispatch has one target and no capture or bubble phase.
- During dispatch,
eventPhaseisEvent.AT_TARGETandcomposedPath()holds only the current target. - A listener that throws is reported; the remaining listeners still run.