mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:42:44 +00:00 
			
		
		
		
	 d767f14df8
			
		
	
	
		d767f14df8
		
	
	
	
	
		
			
			This does _NOT_ correspond to anything in the IDL or ECMAScript spec, but is a custom extended attribute. We use it to define the "enumerated" values of an attribute
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <HTML/HTMLElement.idl>
 | |
| #import <HTML/HTMLFormElement.idl>
 | |
| 
 | |
| [MissingValueDefault=submit, InvalidValueDefault=submit]
 | |
| enum ButtonTypeState {
 | |
|     "submit",
 | |
|     "reset",
 | |
|     "button"
 | |
| };
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
 | |
| [Exposed=Window]
 | |
| interface HTMLButtonElement : HTMLElement {
 | |
|     [HTMLConstructor] constructor();
 | |
| 
 | |
|     [CEReactions, Reflect] attribute boolean disabled;
 | |
|     readonly attribute HTMLFormElement? form;
 | |
|     [CEReactions, Reflect=formaction] attribute USVString formAction;
 | |
|     [CEReactions, Reflect=formenctype] attribute DOMString formEnctype;
 | |
|     [CEReactions, Reflect=formmethod] attribute DOMString formMethod;
 | |
|     [CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
 | |
|     [CEReactions, Reflect=formtarget] attribute DOMString formTarget;
 | |
|     [CEReactions, Reflect] attribute DOMString name;
 | |
|     [CEReactions, Reflect, Enumerated=ButtonTypeState] attribute DOMString type;
 | |
|     [CEReactions, Reflect] attribute DOMString value;
 | |
| 
 | |
|     // FIXME: readonly attribute boolean willValidate;
 | |
|     // FIXME: readonly attribute ValidityState validity;
 | |
|     // FIXME: readonly attribute DOMString validationMessage;
 | |
|     // FIXME: boolean checkValidity();
 | |
|     // FIXME: boolean reportValidity();
 | |
|     // FIXME: undefined setCustomValidity(DOMString error);
 | |
| 
 | |
|     // FIXME: readonly attribute NodeList labels;
 | |
| };
 | |
| // FIXME: HTMLButtonElement includes PopoverInvokerElement;
 |