Skip to content

Safe names for custom events #17

@scottgonzalez

Description

@scottgonzalez

There are a lot of developers using custom events in their code. Right now there is no way to be sure that your custom event names will be safe to use in the future as more native events get added.

Specific Suggestions

  • Create a prefix similar to data- attributes.
  • Choose at least one character that will never appear in a native event so developers can include this somewhere in their custom event names. The form foo:bar seems to be somewhat popular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions