| 
									
										
										
										
											2023-02-03 21:50:05 +01:00
										 |  |  | #import <FileAPI/Blob.idl> | 
					
						
							|  |  |  | #import <FileAPI/File.idl> | 
					
						
							| 
									
										
										
										
											2023-04-02 22:30:56 +02:00
										 |  |  | // FIXME: This #import currently gives the following error after XHR/FormData.idl was #imported in Fetch/BodyInit.idl: | 
					
						
							|  |  |  | //        "LibWeb/HTML/Window.idl:114: error: Mixin 'WindowOrWorkerGlobalScope' was never defined." | 
					
						
							|  |  |  | //        XHR/FormData.idl needs to be #imported in Fetch/BodyInit.idl while removing #import HTML/HTMLFormElement.idl | 
					
						
							|  |  |  | //        currently makes no difference. | 
					
						
							|  |  |  | // #import <HTML/HTMLFormElement.idl> | 
					
						
							| 
									
										
										
										
											2023-02-03 21:50:05 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | typedef (File or USVString) FormDataEntryValue; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://xhr.spec.whatwg.org/#interface-formdata | 
					
						
							| 
									
										
										
										
											2024-08-23 02:16:10 +01:00
										 |  |  | [Exposed=(Window,Worker)] | 
					
						
							| 
									
										
										
										
											2023-02-03 21:50:05 +01:00
										 |  |  | interface FormData { | 
					
						
							| 
									
										
										
										
											2024-12-20 21:26:49 +04:00
										 |  |  |     constructor(optional HTMLFormElement form, optional HTMLElement? submitter = null); | 
					
						
							| 
									
										
										
										
											2023-02-03 21:50:05 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     undefined append(USVString name, USVString value); | 
					
						
							|  |  |  |     undefined append(USVString name, Blob blobValue, optional USVString filename); | 
					
						
							|  |  |  |     undefined delete(USVString name); | 
					
						
							|  |  |  |     // FIXME: The BindingsGenerator is not able to resolve the Variant's visit for FormDataEntryValue when | 
					
						
							|  |  |  |     // the return value for one function returns an optional FormDataEntryValue while the others does not. | 
					
						
							|  |  |  |     (File or USVString)? get(USVString name); | 
					
						
							|  |  |  |     sequence<FormDataEntryValue> getAll(USVString name); | 
					
						
							|  |  |  |     boolean has(USVString name); | 
					
						
							|  |  |  |     undefined set(USVString name, USVString value); | 
					
						
							|  |  |  |     undefined set(USVString name, Blob blobValue, optional USVString filename); | 
					
						
							| 
									
										
										
										
											2023-03-05 17:29:11 +01:00
										 |  |  |     iterable<USVString, FormDataEntryValue>; | 
					
						
							| 
									
										
										
										
											2023-02-03 21:50:05 +01:00
										 |  |  | }; |