jQuery AJAX doesn't return XML with Internet Explorer 10
When called from within Internet Explorer 10, jQuery doesn't return a valid XML document object.
What's going wrong?
Here's the test code:
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
- <script type="text/javascript">
- var url = "test.xml"
- $(function ()
- {
- $.get(encodeURI(url), function (data)
- {
- data.setProperty("SelectionLanguage", "XPath"); // error !
- },"xml");
- });
- </script>
- </head>
- <body>
- </body>
- </html>
Another jQuery API browser:
http://www.dashop.de/?hf=blog_f.html&if=blog/en/dev/JavaScript/content/JavaScript-jQuery-API-Documentation-Viewer.html