Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
strip fragment from URL before sending request for IE<=10, which brea… #252
IE9 & 10 do not strip fragment when it is provided in URL and send it to server.
This used to be spec violation (#9 in https://www.w3.org/TR/2012/WD-XMLHttpRequest-20121206/#dom-xmlhttprequest-open), but for some reason it does not appear in spec any more (https://xhr.spec.whatwg.org/#the-open()-method). But anyway, I consider this behavior as incorrect.
I have reported this to MS as well (https://connect.microsoft.com/IE/feedback/details/785674/xmlhttprequest-sends-fragment-to-server), but without any success even after providing the test case.
dylans left a comment
Could you please add a test in https://github.com/dojo/dojo/blob/master/tests/unit/request/xhr.js so we can verify this with our automated tests? Perhaps under the .get section of that file?