Bug 259781

Summary: form associated checkbox not removed from form data once checked
Product: WebKit Reporter: David Enke <david>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: akeerthi, ashvayka, cdumez, david, rniwa, simon.fraser, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Bug Depends on:    
Bug Blocks: 154907    

David Enke
Reported 2023-08-03 09:15:38 PDT
Form associated custom element checkboxes are not removed from form data once unchecked. If checked, the name and value are present in form data as expected. Expected: Once unchecked, the checkbox is not part of the derived form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#sect3 Actual: Once unchecked, the name and value are still part of the form data and not removed. Reproduction: https://stackblitz.com/edit/safari-form-associated-checkbox-bug?file=index.html
Attachments
Radar WebKit Bug Importer
Comment 1 2023-08-10 09:16:13 PDT
Simon Fraser (smfr)
Comment 2 2023-08-12 10:41:43 PDT
Did this work in older Safari versions?
David Enke
Comment 3 2023-08-12 11:39:32 PDT
Good question. I have to check the repro in BrowserStack. If I remember correctly, formAssociated custom elements have just been shipped recently…
Ryosuke Niwa
Comment 4 2025-03-27 11:36:40 PDT
This seems to be working fine now.
Note You need to log in before you can comment on or make changes to this bug.