| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 description('This tests the XMLHttpRequest responseXML loading an HTML d
ocument in Quirks Mode with responseType "document".'); | 5 description('This tests the XMLHttpRequest responseXML loading an HTML d
ocument in Quirks Mode with responseType "document".'); |
| 6 | 6 |
| 7 window.jsTestIsAsync = true; | 7 window.jsTestIsAsync = true; |
| 8 var xhr = new XMLHttpRequest(), | 8 var xhr = new XMLHttpRequest(), |
| 9 url = window.location.href, | 9 url = window.location.href, |
| 10 children; | 10 children; |
| 11 xhr.onload = function() { | 11 xhr.onload = function() { |
| 12 shouldBeNonNull('xhr.responseXML'); | 12 shouldBeNonNull('xhr.responseXML'); |
| 13 shouldBeTrue('xhr.responseXML instanceof Document'); | 13 shouldBeTrue('xhr.responseXML instanceof Document'); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 <script> | 62 <script> |
| 63 // This code will manipulate the first BR node by adding an "id" to it. | 63 // This code will manipulate the first BR node by adding an "id" to it. |
| 64 // This same BR will be inspected after XHR loads the document to see | 64 // This same BR will be inspected after XHR loads the document to see |
| 65 // if this script executed or not. If it didn't execute, the first BR | 65 // if this script executed or not. If it didn't execute, the first BR |
| 66 // will not have an "id" specified and the test passes. | 66 // will not have an "id" specified and the test passes. |
| 67 var br = document.querySelector('div#description + br'); | 67 var br = document.querySelector('div#description + br'); |
| 68 br.id = 'break-tag'; | 68 br.id = 'break-tag'; |
| 69 </script> | 69 </script> |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |