Skip to content

Introduce classList polyfills for Internet Explorer

Internet Explorer does not support

  • adding multiple classes at once to classList, for example: classList.add('first', 'second')
  • toggling a class based on boolean, for example: classList.toggle('something', isSomething)

We are already using both in our code base, so we should add a polyfill.

Edited by Inactive Account