4 <script src=
"../../resources/js-test.js"></script>
6 description('This tests the XMLHttpRequest responseXML attribute value when given invalid XML data.');
8 window
.jsTestIsAsync
= true;
9 var xhr
= new XMLHttpRequest(),
10 url
= 'resources/xmlhttprequest-get-invalid-data.xml';
11 xhr
.onload = function() {
12 shouldEvaluateTo('xhr.readyState', 4);
13 shouldBeNull('xhr.responseXML');
16 xhr
.onerror = function() {
17 testFailed('The XHR request to an existing resource failed: "' + url
+ '"');
21 xhr
.responseType
= 'document';
26 <div id=
"description"></div>
27 <div id=
"console"></div>