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

Discussion: Remove support for “on*” attribute and property bindings. #240

Open
theengineear opened this issue Dec 22, 2024 · 0 comments

Comments

@theengineear
Copy link
Collaborator

theengineear commented Dec 22, 2024

In general, the default template engine doesn’t want to manage adding event listeners in this way — rather, it wants to leave that sort of thing to the authors’s JS via addEventListener.

We may relax this in the future if no special handling is required to support it (i.e., if it’s completely browser-driven).

https://html.spec.whatwg.org/dev/webappapis.html#event-handler-attributes

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

No branches or pull requests

1 participant