OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <body> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var style_in_responseXML = async_test("Check that a style in an XHR's responseXM
L doesn't prevent accessing the responseXML"); |
| 7 |
| 8 var request = new XMLHttpRequest(); |
| 9 request.responseType = "document"; |
| 10 request.open("GET", "resources/xml-with-style-tag.xml", true); |
| 11 request.onreadystatechange = style_in_responseXML.step_func(function() { |
| 12 if (request.readyState === 4) { |
| 13 assert_not_equals(null, request.response); |
| 14 assert_not_equals(null, request.responseXML); |
| 15 style_in_responseXML.done(); |
| 16 } |
| 17 }); |
| 18 request.send(); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |