mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	This function was implemented in a few classes but is a common element in all form associated elements and the functionality should be there. With these minimal changes we get to implement 4 idl functions for free.
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			915 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			915 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#import <HTML/HTMLElement.idl>
 | 
						|
#import <HTML/HTMLFormElement.idl>
 | 
						|
#import <HTML/ValidityState.idl>
 | 
						|
 | 
						|
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloutputelement
 | 
						|
[Exposed=Window]
 | 
						|
interface HTMLOutputElement : HTMLElement {
 | 
						|
    [HTMLConstructor] constructor();
 | 
						|
 | 
						|
    [SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
 | 
						|
    readonly attribute HTMLFormElement? form;
 | 
						|
    [CEReactions, Reflect] attribute DOMString name;
 | 
						|
 | 
						|
    readonly attribute DOMString type;
 | 
						|
    [CEReactions] attribute Utf16DOMString defaultValue;
 | 
						|
    [CEReactions] attribute Utf16DOMString value;
 | 
						|
 | 
						|
    readonly attribute boolean willValidate;
 | 
						|
    readonly attribute ValidityState validity;
 | 
						|
    [FIXME] readonly attribute DOMString validationMessage;
 | 
						|
    [FIXME] boolean checkValidity();
 | 
						|
    boolean reportValidity();
 | 
						|
    undefined setCustomValidity(DOMString error);
 | 
						|
 | 
						|
    readonly attribute NodeList labels;
 | 
						|
};
 |