mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	LibWeb: Reset form association when the element's form attribute changes
This commit is contained in:
		
							parent
							
								
									23fb1209af
								
							
						
					
					
						commit
						960dcf0e56
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-16 23:44:30 +09:00 
				
			
			Author: https://github.com/trflynn89
Commit: 960dcf0e56
Pull-request: https://github.com/SerenityOS/serenity/pull/23032
Issue: https://github.com/SerenityOS/serenity/issues/22537
Issue: https://github.com/SerenityOS/serenity/issues/22705
Issue: https://github.com/SerenityOS/serenity/issues/23008
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/Lubrsi
			
					 12 changed files with 75 additions and 40 deletions
				
			
		|  | @ -833,9 +833,8 @@ void HTMLInputElement::did_lose_focus() | |||
|     commit_pending_changes(); | ||||
| } | ||||
| 
 | ||||
| void HTMLInputElement::attribute_changed(FlyString const& name, Optional<String> const& value) | ||||
| void HTMLInputElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) | ||||
| { | ||||
|     HTMLElement::attribute_changed(name, value); | ||||
|     if (name == HTML::AttributeNames::checked) { | ||||
|         if (!value.has_value()) { | ||||
|             // When the checked content attribute is removed, if the control does not have dirty checkedness,
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn