effectfuljs icon indicating copy to clipboard operation
effectfuljs copied to clipboard

jsdom integration

Open awto opened this issue 4 years ago • 0 comments

The biggest part of debugging front-end application is debugging event handlers. Browsers expect the handlers to be executed synchronously but in the breakpoint, the debugger releases the thread, thus if there is something like event.stopPropagation after the breakpoint the propagation won't be stopped.

To avoid implementing all the standard propagations algorithms we can utilize jsdom where these are already implemented. This won't solve default actions problem still though (due to security restriction browsers don't give access to this functionality to scripts).

However, this would resolve target.dispatchEvent calls.

awto avatar Apr 13 '20 18:04 awto