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

Syntax errors from bad Javascript in an onclick attribute string never reach onerror #25195

Closed
pshaughn opened this issue Dec 6, 2019 · 2 comments

Comments

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Dec 6, 2019

This is in WPT html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html. The situation is somwhat similar to #25194 but when the syntax error is in an onclick attribute string, instead of a string argument to setTimeout/setInterval, onerror never even gets called in the first place.

@pshaughn
Copy link
Member Author

@pshaughn pshaughn commented Dec 11, 2019

Looking closer at the code and spec now to see what step should throw and whether adding the throw would be an easy change or a hard one.

@pshaughn
Copy link
Member Author

@pshaughn pshaughn commented Dec 11, 2019

There's a FIXME #13152 in there; this is a piece of a bigger problem and basically a duplicate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.