Skip to content

IE8 issue with split #20

Closed
Closed
@stockholmux

Description

@stockholmux

Hi-
In my recent project I noticed that, while the code executed in IE8, the resulting string from JsDiff.applyPatch was scrambled. I was able to work around the issue by using Steven Levithan's polyfill for split ( http://blog.stevenlevithan.com/archives/cross-browser-split ). The way the variable 'meh' in applyPatch is being used isn't supported in IE8. I wouldn't use the polyfill in all situations as it seems to be slower in some cases.

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