Skip to content

test.remove() breaks older IE #5

Description

@JanST123

Thanks for that piece of code.
I just want to leave a hint that the "rest.remove()" line will break JavaScript in Internet Explorer < Edge as this method is undefined.

You should replace it with

      if (test.parentNode) {
        test.parentNode.removeChild(test);
      }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions