Skip to content

elements schema: detect invalid events #3426

Closed

Description

@pkozlowski-opensource

We should detect and report invalid event handlers. Built-in DOM events and custom-element events need to be hand-coded into schema support. We also need to:

  • take directive events into account
  • be able to re-map event names (for example to correctly handle events with mixed and dash-case).

Activity

  1. added this to the Backlog milestone on Jan 23, 2018
  2. splincode commented on Jul 25, 2018

    @splincode
    Contributor

    @pkozlowski-opensource Is the issue relevant?

  3. pauldraper commented on Jan 10, 2019

    @pauldraper
    Contributor

    Given that #4862, #17483, and #27707 are all dups of this, I would think this is still relevant, even 4 years later.

  4. crisbeto commented on Sep 3, 2021

    @crisbeto
    Member

    We discussed this in the feature triage meeting. We decided to close it, because we can't really validate event names due to custom events.

  5. pauldraper commented on Sep 3, 2021

    @pauldraper
    Contributor

    @crisbeto what is a "custom event"? Is that like a "custom input"?

  6. crisbeto commented on Sep 3, 2021

    @crisbeto
    Member

    I was referring to this browser API: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent. It allows for an event with any name to be dispatched from a DOM node.

  7. angular-automatic-lock-bot commented on Oct 4, 2021

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions