Skip to content

onEvent throws on HTMLElement instances that are not elements #166

@matthewp

Description

@matthewp

For example:

let el = document.createElement('div');

canReflect.onEvent(el.__proto__, "foo", function(){});

This is because el.__proto__ is not the actual element. I'm looking for a way to detect this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions