mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	LibWeb: Fix empty value attribute for 'file' input returning fakepath
It should be returning the empty string for this case.
This commit is contained in:
		
							parent
							
								
									c03e025a32
								
							
						
					
					
						commit
						fc4fd6cb02
					
				
					 3 changed files with 11 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								Tests/LibWeb/Text/input/input-element-file-value.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Tests/LibWeb/Text/input/input-element-file-value.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| <script src="include.js"></script> | ||||
| <script> | ||||
|     test(() => { | ||||
|         const input = document.createElement("input"); | ||||
|         input.type = 'file'; | ||||
|         println(`value = '${input.value}'`); | ||||
|     }) | ||||
| </script> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth