mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:42:44 +00:00 
			
		
		
		
	This fixes an issue where programmatically changing the value of an input element wasn't reflected visually.
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			254 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			254 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <input id="foo">
 | |
| <script>
 | |
|     let foo = document.getElementById("foo");
 | |
|     foo.value = "FAIL";
 | |
|     document.body.offsetWidth; // Force a layout
 | |
|     document.addEventListener("DOMContentLoaded", function() {
 | |
|         foo.value = "PASS";
 | |
|     });
 | |
| </script>
 |