Skip to content

Search plugin: Object doesn't support property or method 'forEach' #686

Description

@jhildenbiddle

The NodeList.prototype.forEach is not available on all browsers and therefore throws an error that prevents other JavaScript from executing properly. IE, Edge < 16 and Safari < 10 are relatively recent browsers that are affected.

When working with NodeLists, use a standard for loop or convert the NodeList to an array to avoid this issue.

browser-support-ie10

As a friendly reminder to the community, please keep docsify's supported browsers (IE10+) in mind when modifying docsify or plugins. Ideally, changes should be tested in target browsers (IE, Edge, Chrome, Firefox, and Safari) before going live. Free access to these browsers is available by signing up for a open source developer account with https://www.browserstack.com/, https://saucelabs.com/, or similar services.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions