Skip to content

test.remove() breaks older IE #5

@JanST123

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);
      }

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