Skip to content

Make Animation an EventTarget again #63

Open
@mgiuffrida

Description

@mgiuffrida

According to the spec, Animation inherits from EventTarget. While the polyfilled Animation exposes add/removeEventListener, it is missing dispatchEvent because it doesn't actually use an EventTarget as its prototype.

As a workaround, animation._animation.dispatchEvent seems to work when Animation exists natively (tested in Chromium).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions