<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>259781</bug_id>
          
          <creation_ts>2023-08-03 09:15:38 -0700</creation_ts>
          <short_desc>form associated checkbox not removed from form data once checked</short_desc>
          <delta_ts>2025-03-27 11:36:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>Safari 17</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>154907</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Enke">david</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>ashvayka</cc>
    
    <cc>cdumez</cc>
    
    <cc>david</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1969447</commentid>
    <comment_count>0</comment_count>
    <who name="David Enke">david</who>
    <bug_when>2023-08-03 09:15:38 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970499</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-10 09:16:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/113696919&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970907</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-08-12 10:41:43 -0700</bug_when>
    <thetext>Did this work in older Safari versions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970910</commentid>
    <comment_count>3</comment_count>
    <who name="David Enke">david</who>
    <bug_when>2023-08-12 11:39:32 -0700</bug_when>
    <thetext>Good question. I have to check the repro in BrowserStack.
If I remember correctly, formAssociated custom elements have just been shipped recently…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106522</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-27 11:36:40 -0700</bug_when>
    <thetext>This seems to be working fine now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>