• Resolved cebbi

    (@cebbi)


    Hi, viewing a page in Internet Explorer 11 this error appears in the console while no images are displayed:

    SCRIPT438: Object doesn't support property or method "forEach"
    gutenslider.js (1,776)

    I’m using WordPress 5.5.3 and Gutenslider 4.4.9. You can also see this problem on gutenslider.org.

    I found the following fix:
    Add this code at the beginning of gutenslider.js to borrow the missing function from Array:

    if (window.NodeList && !NodeList.prototype.forEach) {
      NodeList.prototype.forEach = Array.prototype.forEach;
    }

    Could you include that in the next update? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor WordPress Slider

    (@wordpressslider)

    @cebbi thanks for you report with fix. unfortunately that is not the only issue with ie11. one more is that it does not support css vars, which we make heave use of. the polyfills around do not work for us and it is currently not on our agenda to support ie11 in the future. however if you want to test around, i can send you a zip with the code altered you named so the rest is css issues … if you want drop us a line at [email protected]

Viewing 1 replies (of 1 total)
  • The topic ‘IE11 missing slider: Object doesn’t support property or method “forEach”’ is closed to new replies.