mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	LibWeb: Stub out a few HTMLTextArea validity IDL methods
These are invoked by GitHub when submitting a comment. Stub them out for now, as this is enough to let GitHub proceed with (attempting) to submit the comment.
This commit is contained in:
		
							parent
							
								
									76f767c867
								
							
						
					
					
						commit
						50d3f85f75
					
				
					 3 changed files with 27 additions and 3 deletions
				
			
		|  | @ -148,6 +148,26 @@ u32 HTMLTextAreaElement::text_length() const | |||
|     return Utf16View { utf16_data }.length_in_code_units(); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
 | ||||
| bool HTMLTextAreaElement::check_validity() | ||||
| { | ||||
|     dbgln("(STUBBED) HTMLTextAreaElement::check_validity(). Called on: {}", debug_description()); | ||||
|     return true; | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-reportvalidity
 | ||||
| bool HTMLTextAreaElement::report_validity() | ||||
| { | ||||
|     dbgln("(STUBBED) HTMLTextAreaElement::report_validity(). Called on: {}", debug_description()); | ||||
|     return true; | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
 | ||||
| void HTMLTextAreaElement::set_custom_validity(String const& error) | ||||
| { | ||||
|     dbgln("(STUBBED) HTMLTextAreaElement::set_custom_validity(\"{}\"). Called on: {}", error, debug_description()); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/form-elements.html#dom-textarea-maxlength
 | ||||
| WebIDL::Long HTMLTextAreaElement::max_length() const | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn