Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Test for existence of XMLHttpRequest in window fails in SOME IE8s #7

Closed
mplungjan opened this Issue · 2 comments

3 participants

@mplungjan

&& !('XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest()) // and must not support CORS (IE10+)

works if you replace it with

&& !(window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()) // and must not support CORS (IE10+)

@mathieucarbou

weird... Why this one fails and not the 'withCredentials' in new XMLHttpRequest()?

@mplungjan

Actually it does. In the first line, the browser fails on the second part because for some reason, the first part returns a truly value

@altus34 altus34 was assigned
@altus34 altus34 referenced this issue from a commit
@altus34 altus34 Fix Issue #7 43a0b7b
@altus34 altus34 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.