Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsdom integration #12

Open
awto opened this issue Apr 13, 2020 · 0 comments
Open

jsdom integration #12

awto opened this issue Apr 13, 2020 · 0 comments
Labels
debugger @effectful/debugger related tickets enhancement

Comments

@awto
Copy link
Owner

awto commented Apr 13, 2020

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 awto added enhancement debugger @effectful/debugger related tickets labels Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger @effectful/debugger related tickets enhancement
Projects
None yet
Development

No branches or pull requests

1 participant