Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It causes an error in IE8 brower. Can I use it in IE8 brower? #4

Closed
wenzhixin opened this issue Jun 2, 2013 · 3 comments
Closed

It causes an error in IE8 brower. Can I use it in IE8 brower? #4

wenzhixin opened this issue Jun 2, 2013 · 3 comments

Comments

@wenzhixin
Copy link

No description provided.

@rstacruz
Copy link
Owner

Haven't tried it, but I've put in legacy shims to hypothetically make it work with IE8 (but haven't had the chance to use a Windows machine to test it yet!) sorry about that. If anyone can help debug, please do!

@apalsapure
Copy link

I was facing issue in IE10 in flatdoc.js.
But was able to fix it by doing (line no 205)

$content.find('h1, h2, h3').each(function() {
    var $el = $(this);
    var level = +(this.nodeName.substr(1));

    var parent = mkdir_p(level-1);   //<==== assigned var to parent

    var obj = { section: $el.text(), items: [], level: level, id: $el.attr('id') };
    parent.items.push(obj);
    cache[level] = obj;
});

Hope this helps.

Cheers

@wenzhixin
Copy link
Author

Thank you @apalsapure, it is useful. But there are other problems, I add es5-shim and it works with IE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants