Skip to content

Attribute order for onclick event attributes #259

Open

Description

@vanillajonathan

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

Activity

  1. msantana-dev commented on Apr 9, 2022

    @msantana-dev

    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.

  2. vanillajonathan commented on Apr 9, 2022

    @vanillajonathan
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions