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

IE9+ Agent with documentMode < 9 Bug #77

Open
kevindees opened this issue Sep 6, 2013 · 1 comment
Open

IE9+ Agent with documentMode < 9 Bug #77

kevindees opened this issue Sep 6, 2013 · 1 comment

Comments

@kevindees
Copy link

I had to create this fix so that IE9+ when using IE8- Document Mode will still run the script.

// If were not in standards mode, IE is too old / new or we can't create
// an XMLHttpRequest object then we should get out now.
    if (doc.compatMode != 'CSS1Compat' || ieVersion<6 || ieVersion>8 || !xhr) {
            if(document.documentMode > 8 || typeof document.documentMode === "undefined") {
                return;
            }
    }
@gucong3000
Copy link

var ieVersion = doc.querySelector ? doc.documentMode : (doc.compatMode == "CSS1Compat" ? "XMLHttpRequest" in win ? 7 : 6 : 5);

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

2 participants