<?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>257553</bug_id>
          
          <creation_ts>2023-05-31 11:11:44 -0700</creation_ts>
          <short_desc>Selecting OptGroup label does not deselect selected item</short_desc>
          <delta_ts>2023-05-31 17:04:19 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1959085</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-31 11:11:44 -0700</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across another issue, where we lost selection if click on label while Firefox Nightly 115 and Chrome Canary 116 does not.

Testcase: https://jsfiddle.net/aqwnsfzt/

^ Select on &apos;Selection&apos; and then try to select &apos;label&apos; and you will lose selection in Safari 16.5

Blink Commit: https://src.chromium.org/viewvc/blink?view=revision&amp;revision=171470

WebKit Source: https://github.com/WebKit/WebKit/blob/b37f820dae2abeffca68dc3c9ec6831d8b16f370/Source/WebCore/html/HTMLSelectElement.cpp#L1329

Doing local testing, it does fix the issue and don&apos;t fail any test in /fast/forms/select and imported/w3c/web-platform-tests/html/.

We might need to skip it on iOS (test case).

Just wanted to raise, so we can fix it.

Marking this as &apos;BrowserCompat&apos; as well.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959201</commentid>
    <comment_count>1</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-31 17:03:58 -0700</bug_when>
    <thetext>Committed 264767@main (734687da6292): &lt;https://commits.webkit.org/264767@main&gt;

Reviewed commits have been landed. Closing PR #14545 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959202</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-31 17:04:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/110088331&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>