Home Dashboard Directory Help
Search

IE11 - XMLHttpRequest incorrectly throws InvalidStateError when setting responseType by Scott K Hunter


Status: 

Active


Type: Bug
ID: 795580
Opened: 7/31/2013 12:42:59 PM
Access Restriction: Public
1
Workaround(s)
view
2
User(s) can reproduce this bug

Description


This JavaScript throws an InvalidStateError:

var xhr = new XMLHttpRequest();
xhr.responseType = "blob";

This not compliant with the XHR spec:

http://www.w3.org/TR/XMLHttpRequest/#the-responsetype-attribute

which says that "InvalidStateError" is only thrown when LOADING or DONE. In this case, the state is UNSENT.
Details
Sign in to post a comment.
Posted by Microsoft on 8/1/2013 at 1:58 PM
Thank you for your feedback.

We are currently unable to reproduce this issue as described.


We value your feedback. If you have additional information that can help us recreate this issue — such as a specific url, more detailed steps, test results from different machines, or additional conditions — please reactivate the bug or submit a new bug with more details on how to reproduce the issue. You can also read the guidelines at https://connect.microsoft.com/IE/content/content.aspx?ContentID=16254 regarding filing a good bug report.

Best regards,

The Internet Explorer Team
Sign in to post a workaround.
Posted by Scott K Hunter on 7/31/2013 at 12:53 PM
Calling xhr.open() before setting responseType seems to work, but should not be necessary.
File Name Submitted By Submitted On File Size  
invalidStateError.zip 7/31/2013 319 bytes