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

responses.html set instead of responseText #38

Open
frontendplace opened this issue Jul 8, 2014 · 0 comments
Open

responses.html set instead of responseText #38

frontendplace opened this issue Jul 8, 2014 · 0 comments

Comments

@frontendplace
Copy link

In my project I use this plugin for cross domain and ie9 but when I get a text/html respons the responses.html is set and not the responses.reponseText.
When I check the Ajax response the responseText is null in this case.
Looking at the XMLHTTPRequest docs, responseText is the correct property to use.
When I change:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.html = xdr.responseText;
}
to:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.responseText = xdr.responseText;
}
all works fine here.

I see in previous changes "Accommodate HTML dataType, as requested in PR 13" you added this

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

1 participant