Skip to content

Error: Object doesn't support property or method 'remove' (Element.prototype.remove()) #20

Description

@diggabyte

When Line 169 in VPAIDHTML5Client.js called in <= IE 11 (and other older browsers which do not support it), throws the following error:
Object doesn't support property or method 'remove'

The ChildNode.remove() MDN specification, lists browsers which do not support the ChildNode.remove() method and provides a polyfill for adding support.

I was unable to get tests passing locally before any changes were made. So I will defer to the maintainers to ensure all tests are passing and to bump the package version.

Here is the patch:
https://gist.github.com/diggabyte/a99b06c455475b57719554b1385be4be

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions