mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	 0762388709
			
		
	
	
		0762388709
		
	
	
	
	
		
			
			Before this change, we were producing a generic DOM::Document, which was not distinguishable from an XMLDocument by IDL interface type.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="include.js"></script>
 | |
| <script>
 | |
|     asyncTest((done) => {
 | |
|         const xhr = new XMLHttpRequest();
 | |
|         xhr.responseType = "document";
 | |
|         xhr.open("GET", "data:text/xml,<?xml version='1.0'?><lol/>", true);
 | |
|         xhr.onreadystatechange = function() {
 | |
|             if (xhr.readyState === 4 && xhr.status === 200) {
 | |
|                 let xml = xhr.responseXML;
 | |
|                 if (xml instanceof XMLDocument)
 | |
|                     println("PASS");
 | |
|                 else
 | |
|                     println("FAIL");
 | |
|                 done();
 | |
|             }
 | |
|         };
 | |
|         xhr.send();
 | |
|     });
 | |
| </script>
 |