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

Attribute order for onclick event attributes #259

Open
vanillajonathan opened this issue Mar 8, 2022 · 2 comments
Open

Attribute order for onclick event attributes #259

vanillajonathan opened this issue Mar 8, 2022 · 2 comments

Comments

@vanillajonathan
Copy link
Contributor

The HTML attribute order section does not include the order of event attributes such as onclick, onblur, onchange, etc.

@msantana-dev
Copy link

msantana-dev commented Apr 9, 2022

Might be due to usage of event attributes being discouraged.
From MDN:

You can find HTML attribute equivalents for many of the event handler properties; however, you shouldn't use these — they are considered bad practice. It might seem easy to use an event handler attribute if you are doing something really quick, but they quickly become unmanageable and inefficient.

@vanillajonathan
Copy link
Contributor Author

Yes, but when you use an SPA such as React you would use event handlers such as onClick, onBlur, onChange, etc, or with Vue @click, @blur, @change, or with Angular (click), (blur), (change).

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

2 participants