Skip to content

Element instanceof EventTarget #9289

@theMatthes

Description

@theMatthes

Bug Report

Current Behavior
Ok, this is a rather complicated issue.
When I try to do for example document.body instanceof EventTarget, it doesn't work in IE.

Environment

  • Babel version(s): 7.2.0
  • How you are using Babel: In the browser (Chrome)

Possible Solution

Replace it with something IE knows (like typeof(document.body.addEventListener) === 'undefined')

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: out of scopeFeature requests which don't fit the scope of @babeljs, e.g. ideas for new third-party pluginsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions