mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 dbca63a1db
			
		
	
	
		dbca63a1db
		
	
	
	
	
		
			
			This fixes a hang on https://reddit.com/ Spec bug: https://github.com/whatwg/dom/issues/1102
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         const fragment = document.createDocumentFragment();
 | |
|         fragment.appendChild(document.createTextNode("hello"));
 | |
| 
 | |
|         const walker = document.createTreeWalker(document, 0);
 | |
|         walker.currentNode = fragment;
 | |
| 
 | |
|         walker.nextNode();
 | |
|         println("PASS (Didn't get stuck)");
 | |
|     });
 | |
| </script>
 |