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

Clarify that IDBTransaction.onerror fires when errors bubble up from requests #353

Open
taymonbeal opened this issue May 19, 2021 · 1 comment

Comments

@taymonbeal
Copy link

@inexorabletash: "The spec is correct for implementers, but it could use some non-normative webdev-facing text about the event handlers."

@inexorabletash
Copy link
Member

This question comes up a lot.

https://w3c.github.io/IndexedDB/#dom-idbtransaction-onerror says:

To determine if a transaction has completed successfully, listen to the transaction's complete event rather than the success event of a particular request, because the transaction can still fail after the success event fires.

...but this could be extended with more details..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants