electerious / basicLightbox

The lightest lightbox ever made.
https://basiclightbox.electerious.com
MIT License
564 stars 55 forks source link

IE11 Support? #23

Closed NoxiousSolitary closed 5 years ago

NoxiousSolitary commented 5 years ago

The documentation states that basicLightbox is compatible with Internet Explorer 11. However, the examples on the product page don't work in Internet Explorer 11. https://basiclightbox.electerious.com/

IE Version Tested: 11.523.17134.0

The main console error that appear when clicking on any of the 'Run' buttons to demo the project is below:

Object doesn't support property or method 'from' main.js (1,5323)

The documentation also has examples with arrow functions, which aren't supported in IE11.

Could the documentation be updated with a revised list of supported browsers, or clearer explanations for what's supported in the examples?

electerious commented 5 years ago

Hey @NoxiousSolitary

basicLightbox supports IE11 with polyfills. The website of basicLightbox itself has no polyfills implemented. Same applies to the demos.

Demo code is written in modern JS, which isn't supported by IE11 either. You can use the website of Babel to convert it to a compatible version: https://babeljs.io/repl