| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <HTML/HTMLElement.idl> | 
					
						
							| 
									
										
										
										
											2023-10-04 17:55:33 +02:00
										 |  |  | #import <HTML/HTMLFormElement.idl> | 
					
						
							| 
									
										
										
										
											2024-11-23 23:06:06 +01:00
										 |  |  | #import <HTML/PopoverInvokerElement.idl> | 
					
						
							| 
									
										
										
										
											2025-02-17 20:44:26 +01:00
										 |  |  | #import <HTML/ValidityState.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 01:48:01 +01:00
										 |  |  | [MissingValueDefault=submit, InvalidValueDefault=submit] | 
					
						
							|  |  |  | enum ButtonTypeState { | 
					
						
							|  |  |  |     "submit", | 
					
						
							|  |  |  |     "reset", | 
					
						
							|  |  |  |     "button" | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-07 16:45:09 -06:00
										 |  |  | // https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement | 
					
						
							| 
									
										
										
										
											2023-09-03 15:29:34 +12:00
										 |  |  | [Exposed=Window] | 
					
						
							| 
									
										
										
										
											2020-08-01 03:04:26 +01:00
										 |  |  | interface HTMLButtonElement : HTMLElement { | 
					
						
							| 
									
										
										
										
											2023-03-23 03:48:52 -04:00
										 |  |  |     [HTMLConstructor] constructor(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-04 01:16:44 +02:00
										 |  |  |     [CEReactions] attribute DOMString command; | 
					
						
							| 
									
										
										
										
											2025-04-04 01:27:55 +02:00
										 |  |  |     [CEReactions, Reflect=commandfor] attribute Element? commandForElement; | 
					
						
							| 
									
										
										
										
											2023-06-18 15:10:11 +01:00
										 |  |  |     [CEReactions, Reflect] attribute boolean disabled; | 
					
						
							| 
									
										
										
										
											2023-10-04 17:55:33 +02:00
										 |  |  |     readonly attribute HTMLFormElement? form; | 
					
						
							| 
									
										
										
										
											2024-09-07 23:17:56 +01:00
										 |  |  |     [CEReactions] attribute USVString formAction; | 
					
						
							| 
									
										
										
										
											2024-10-20 18:26:45 +02:00
										 |  |  |     [CEReactions, Reflect=formenctype, Enumerated=FormEnctypeAttribute] attribute DOMString formEnctype; | 
					
						
							|  |  |  |     [CEReactions, Reflect=formmethod, Enumerated=FormMethodAttribute] attribute DOMString formMethod; | 
					
						
							| 
									
										
										
										
											2023-03-01 01:45:18 +00:00
										 |  |  |     [CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate; | 
					
						
							|  |  |  |     [CEReactions, Reflect=formtarget] attribute DOMString formTarget; | 
					
						
							|  |  |  |     [CEReactions, Reflect] attribute DOMString name; | 
					
						
							| 
									
										
										
										
											2025-02-20 17:01:28 +00:00
										 |  |  |     [CEReactions, ImplementedAs=type_for_bindings, Enumerated=ButtonTypeState] attribute DOMString type; | 
					
						
							| 
									
										
										
										
											2025-07-26 12:19:56 -04:00
										 |  |  |     [CEReactions, Reflect] attribute Utf16DOMString value; | 
					
						
							| 
									
										
										
										
											2020-08-01 03:04:26 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-25 17:43:11 +09:00
										 |  |  |     readonly attribute boolean willValidate; | 
					
						
							| 
									
										
										
										
											2025-02-17 20:44:26 +01:00
										 |  |  |     readonly attribute ValidityState validity; | 
					
						
							| 
									
										
										
										
											2024-05-19 22:15:54 +12:00
										 |  |  |     [FIXME] readonly attribute DOMString validationMessage; | 
					
						
							|  |  |  |     [FIXME] boolean checkValidity(); | 
					
						
							|  |  |  |     [FIXME] boolean reportValidity(); | 
					
						
							| 
									
										
										
										
											2025-02-17 20:50:56 +01:00
										 |  |  |     undefined setCustomValidity(DOMString error); | 
					
						
							| 
									
										
										
										
											2023-10-04 17:55:33 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-18 14:10:00 +01:00
										 |  |  |     readonly attribute NodeList labels; | 
					
						
							| 
									
										
										
										
											2020-12-09 21:26:42 +00:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2024-11-23 23:06:06 +01:00
										 |  |  | HTMLButtonElement includes PopoverInvokerElement; |