Your example is simple. But some common cases of synth events are complicated. UI Events aren't so bad but MouseEvents and especially TouchEvents are a lot of work to synthesize.Most cases for synth events are for testing -- feature test or unit test. EventTarget.fireEvent(type[, options]);
So how is this simpler? Maybe you could illustrate by example instead? -- Anne van Kesteren http://annevankesteren.nl/